embedded: compile SEGGER RTT code only if enabled

This commit is contained in:
Matthias Ringwald 2022-11-11 09:09:30 +01:00
parent d7b812f078
commit da39cc4ecc
2 changed files with 11 additions and 1 deletions

View File

@ -42,6 +42,8 @@
*/
#include "btstack_config.h"
#ifdef ENABLE_SEGGER_RTT
#include "hci_dump_segger_rtt_binary.h"
#include "btstack_debug.h"
@ -147,3 +149,6 @@ const hci_dump_t * hci_dump_segger_rtt_binary_get_instance(void){
};
return &hci_dump_instance;
}
#endif

View File

@ -41,8 +41,11 @@
* Dump HCI trace on stdout
*/
#include "hci_dump.h"
#include "btstack_config.h"
#ifdef ENABLE_SEGGER_RTT
#include "hci_dump.h"
#include "btstack_util.h"
#include "hci.h"
#include <stdio.h>
@ -191,3 +194,5 @@ const hci_dump_t * hci_dump_segger_rtt_stdout_get_instance(void){
};
return &hci_dump_instance;
}
#endif