Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b8d044301a | |||
| ef034f3195 |
+2
-2
@@ -45,10 +45,10 @@ extern "C" {
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EM */
|
||||
#define DEBUG
|
||||
#define DEBUG_ITM
|
||||
#define DEBUG_DUMMY_FRAME
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG_ITM
|
||||
#include <stdio.h>
|
||||
#define DEBUG_PRINT(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
|
||||
+2
-2
@@ -119,8 +119,8 @@ void vUARTLogger(void *argument)
|
||||
DEBUG_PRINT("Waiting for CAN traffic...\r\n");
|
||||
|
||||
#ifdef DEBUG_DUMMY_FRAME
|
||||
osMessageQueuePut(xUARTQueue, &dummy_msg, 0U, 0U);
|
||||
osDelay(2000);
|
||||
osMessageQueuePut(xUARTQueue, &dummy_frame, 0U, 0U);
|
||||
osDelay(1000);
|
||||
#endif
|
||||
|
||||
if (osMessageQueueGet(xUARTQueue, &message, NULL, osWaitForever) == osOK)
|
||||
|
||||
Reference in New Issue
Block a user