We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 810a79f + a078fcb commit b6ed396Copy full SHA for b6ed396
atc.c
@@ -5,6 +5,9 @@
5
6
#if (_ATC_DEBUG == 1)
7
#define atc_printf(...) printf(__VA_ARGS__)
8
+#elif (_ATC_DEBUG == 2)
9
+#include "SEGGER_RTT.h"
10
+#define atc_printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
11
#else
12
#define atc_printf(...) {};
13
#endif
atcConfig.h
@@ -2,7 +2,7 @@
2
#ifndef _ATCCONFIG_H_
3
#define _ATCCONFIG_H_
4
-#define _ATC_DEBUG 0 // use printf debug
+#define _ATC_DEBUG 0 // 0: no printf debug 1: use printf debug 2: rtt printf
#define _ATC_RTOS 1 // 0: no rtos 1: cmsis_os v1 2: cmsis_os v2
#define _ATC_RXSIZE 1500 // at-command rx buffer size
#define _ATC_SEARCH_CMD_MAX 5 // maximum of answer in at-command
0 commit comments