creating main BAROS system
This commit is contained in:
parent
c94424659a
commit
312360707d
3 changed files with 17 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ set(REQUIRES
|
|||
)
|
||||
|
||||
set(SRCS
|
||||
src/baros.c
|
||||
src/baros_ble.c
|
||||
src/baros_ble_ota.c
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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,6 +37,7 @@ 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);
|
||||
|
||||
#define BARBACK_BANNER "\n\
|
||||
|
|
|
|||
11
src/baros.c
Normal file
11
src/baros.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue