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