mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-17 02:42:33 +00:00
embedded: compile SEGGER RTT code only if enabled
This commit is contained in:
parent
d7b812f078
commit
da39cc4ecc
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user