blob: 740f2a590a900ad94e15bf19ab4b21483820efcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "pb-types.h"
#include "pb.h"
//! fallback module name
__weak const char * PBDRV_MOD_NAME = "???";
//! [private] placeholder global state variable
static pb_global_state_t _global_state = PB_GS_NOINIT;
//! [private] main controller global state
static pb_global_state_t _main_state = PB_GS_NOINIT;
// __weak enum pb_state pbdrv_hook_mod_state_read() {
// return _global_state;
// }
// __weak void pbdrv_hook_mod_state_write(enum pb_state state) {
// _global_state = state;
// }
__weak void pbdrv_i2c_recv(const uint8_t * buf, size_t sz) {
return;
}
__weak void pbdrv_hook_main_state_update(pb_global_state_t state) { }
|