make targets "loadable"

This commit is contained in:
Philippe G
2022-01-20 17:34:21 -08:00
parent 1b74c82c72
commit 47774c98f0
10 changed files with 68 additions and 28 deletions

View File

@@ -10,6 +10,7 @@
//#include <driver/adc.h>
#include "driver/rmt.h"
#include "monitor.h"
#include "targets.h"
/////////////////////////////////////////////////////////////////
//*********************** NeoPixels ***************************
@@ -44,11 +45,15 @@ static const char TAG[] = "muse";
static void (*battery_handler_chain)(float value);
static void battery_svc(float value);
static bool init(void);
void target_init(void) {
const struct target_s target_muse = { "muse", init };
static bool init(void) {
battery_handler_chain = battery_handler_svc;
battery_handler_svc = battery_svc;
ESP_LOGI(TAG, "Initializing for Muse");
return true;
}
static void battery_svc(float value) {