Skip to content

Commit

Permalink
Update ifdef USART_DEBUG macros to support semihosting as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kekiefer committed Dec 10, 2016
1 parent a850653 commit 6b75581
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#include "usbd_ctlreq.h"
#include "usbd_types.h"

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Middlewares/lepton_sdk/Src/stm32_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#define MAX_TXRX_SIZE_BYTES (1024)
#define COMM_TIMEOUT_MS (500)

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/button_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "project_config.h"


#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/lepton.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "project_config.h"

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/lepton_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "LEPTON_OEM.h"
#include "LEPTON_RAD.h"

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/lepton_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct rgb_to_yuv_state {
yuv422_buffer_t *restrict buffer;
};

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/tmp007_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "project_config.h"


#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/uart_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
uint8_t lepton_raw[60*80*2];

extern volatile int restart_frame;
#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/usb_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static yuv422_buffer_t *last_buffer;
static lepton_buffer *last_buffer_rgb;
#endif

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down
2 changes: 1 addition & 1 deletion Src/usbd_uvc_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "usbd_uvc_if.h"
#include "usbd_uvc_lepton_xu.h"

#ifdef USART_DEBUG
#if defined(USART_DEBUG) || defined(GDB_SEMIHOSTING)
#define DEBUG_PRINTF(...) printf( __VA_ARGS__);
#else
#define DEBUG_PRINTF(...)
Expand Down

0 comments on commit 6b75581

Please sign in to comment.