Skip to content

Commit

Permalink
feat: use milliseconds for TRACE instead of a float
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Sep 26, 2023
1 parent 623892b commit fc00aea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions radio/src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ EXTERN_C(extern volatile uint32_t g_tmr10ms);
#define debugPrintf(...)
#endif

#define TRACE_TIME_FORMAT "%0.2fs: "
#define TRACE_TIME_VALUE ((float)g_tmr10ms / 100.0)

#define TRACE_TIME_FORMAT "%dms: "
#define TRACE_TIME_VALUE (g_tmr10ms * 10)

#define TRACE_NOCRLF(...) debugPrintf(__VA_ARGS__)
#define TRACE(f_, ...) debugPrintf((TRACE_TIME_FORMAT f_ CRLF), TRACE_TIME_VALUE, ##__VA_ARGS__)
#define DUMP(data, size) dump(data, size)
Expand Down
7 changes: 7 additions & 0 deletions radio/src/tasks.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@
#else
#define MENUS_STACK_SIZE 2000
#endif

#if !defined(DEBUG)
#define MIXER_STACK_SIZE 400
#define AUDIO_STACK_SIZE 400
#else
#define MIXER_STACK_SIZE 512
#define AUDIO_STACK_SIZE 512
#endif

#define CLI_STACK_SIZE 1024 // only consumed with CLI build option

#if defined(FREE_RTOS)
Expand Down

0 comments on commit fc00aea

Please sign in to comment.