Skip to content

Commit

Permalink
rtt support
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnikita committed Nov 14, 2023
1 parent 810a79f commit a078fcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions atc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

#if (_ATC_DEBUG == 1)
#define atc_printf(...) printf(__VA_ARGS__)
#elif (_ATC_DEBUG == 2)
#include "SEGGER_RTT.h"
#define atc_printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
#else
#define atc_printf(...) {};
#endif
Expand Down
2 changes: 1 addition & 1 deletion atcConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#ifndef _ATCCONFIG_H_
#define _ATCCONFIG_H_

#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
Expand Down

0 comments on commit a078fcb

Please sign in to comment.