diff options
Diffstat (limited to 'main/bte_main.c')
-rw-r--r-- | main/bte_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/bte_main.c b/main/bte_main.c index 274ee7d..7707d48 100644 --- a/main/bte_main.c +++ b/main/bte_main.c @@ -66,6 +66,11 @@ ** Constants & Macros *******************************************************************************/ +/* Run-time configuration file */ +#ifndef BTE_STACK_CONF_FILE +#define BTE_STACK_CONF_FILE "/etc/bluetooth/bt_stack.conf" +#endif + /******************************************************************************* ** Local type definitions *******************************************************************************/ @@ -94,6 +99,7 @@ extern void btsnoop_init(void); extern void btsnoop_open(void); extern void btsnoop_close(void); extern void btsnoop_cleanup (void); +extern void bte_load_conf(const char *p_path); @@ -142,6 +148,8 @@ void bte_main_boot_entry(void) bte_main_in_hw_init(); + bte_load_conf(BTE_STACK_CONF_FILE); + #if (BTTRC_INCLUDED == TRUE) /* Initialize trace feature */ BTTRC_TraceInit(MAX_TRACE_RAM_SIZE, &BTE_TraceLogBuf[0], BTTRC_METHOD_RAM); |