Compare commits

..

2 commits

Author SHA1 Message Date
312360707d creating main BAROS system 2026-08-04 17:18:39 -07:00
c94424659a declatration for missing functions 2026-08-04 17:18:17 -07:00
3 changed files with 17 additions and 2 deletions

View file

@ -7,6 +7,7 @@ set(REQUIRES
)
set(SRCS
src/baros.c
src/baros_ble.c
src/baros_ble_ota.c
)

View file

@ -24,6 +24,10 @@ typedef enum {
typedef struct {
const char *name;
baros_role_t role;
} baros_cfg_t;
typedef struct {
const char *name;
} baros_ble_cfg_t;
ESP_EVENT_DECLARE_BASE(EVENT_BAROS_BLE);
@ -33,9 +37,8 @@ typedef enum {
BAROS_BLE_CONNECT,
} baros_ble_event_t;
uint8_t baros_init(baros_cfg_t *cfg);
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
int baros_ble_scan_start();
int baros_ble_scan_stop();
#define BARBACK_BANNER "\n\
\n\

11
src/baros.c Normal file
View file

@ -0,0 +1,11 @@
#include "baros.h"
uint8_t baros_init(baros_cfg_t *cfg) {
baros_ble_cfg_t ble_cfg = {
.name = cfg->name
};
baros_ble_init(&ble_cfg);
return 0;
}