Skip to content

Commit b6ed396

Browse files
authored
Merge pull request #10 from kossnikita/rtt
RTT support
2 parents 810a79f + a078fcb commit b6ed396

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

atc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
#if (_ATC_DEBUG == 1)
77
#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__)
811
#else
912
#define atc_printf(...) {};
1013
#endif

atcConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _ATCCONFIG_H_
33
#define _ATCCONFIG_H_
44

5-
#define _ATC_DEBUG 0 // use printf debug
5+
#define _ATC_DEBUG 0 // 0: no printf debug 1: use printf debug 2: rtt printf
66
#define _ATC_RTOS 1 // 0: no rtos 1: cmsis_os v1 2: cmsis_os v2
77
#define _ATC_RXSIZE 1500 // at-command rx buffer size
88
#define _ATC_SEARCH_CMD_MAX 5 // maximum of answer in at-command

0 commit comments

Comments
 (0)