Skip to content

Commit 2444478

Browse files
pennamfacchinm
authored andcommitted
PortentaH7: Disable WHD WPRINT_MACRO
1 parent 531ab8f commit 2444478

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/port/cyhal_hw_types.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,8 @@ typedef struct
102102
void *empty;
103103
} cyhal_spi_t;
104104

105-
106-
#include "whd_debug.h"
107-
108-
#if defined(WPRINT_ENABLE_WHD_ERROR) || defined(WPRINT_ENABLE_WHD_INFO) || defined(WPRINT_ENABLE_WHD_DEBUG)
109-
/** \} group_hal_hw_types_data_structures */
110-
#define PRINTF(...) do { \
111-
(void) printf(__VA_ARGS__); \
112-
} while (0)
113-
#else
114-
#define PRINTF(...)
115-
#endif
116-
117105
#include "whd_config.h"
106+
#include "whd_debug.h"
118107

119108
#if defined(__cplusplus)
120109
}

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/whd_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include "stm32h7xx_hal.h"
2727
#include <stdint.h>
2828

29+
/* disable WPRINT_MACRO */
30+
#define WHD_PRINT_DISABLE
31+
2932
/* please define your configuration , either SDIO or SPI */
3033
#define CY_WHD_CONFIG_USE_SDIO
3134
//#define CY_WHD_CONFIG_USE_SPI

0 commit comments

Comments
 (0)