Skip to content

Commit 3e07de5

Browse files
committed
Portenta: WiFi: remove debug on Serial1
1 parent e27b2f1 commit 3e07de5

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/interface/cyhal_hw_types.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,17 @@ typedef struct
8181
void *empty;
8282
} cyhal_spi_t;
8383

84+
85+
#include "whd_debug.h"
86+
87+
#if defined(WPRINT_ENABLE_WHD_ERROR) || defined(WPRINT_ENABLE_WHD_INFO) || defined(WPRINT_ENABLE_WHD_DEBUG)
8488
/** \} group_hal_hw_types_data_structures */
8589
#define PRINTF(...) do { \
8690
(void) printf(__VA_ARGS__); \
8791
} while (0)
88-
92+
#else
93+
#define PRINTF(...)
94+
#endif
8995

9096
#include "whd_config.h"
9197

cores/arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/src/include/whd_debug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C"
3636
#define WPRINT_ENABLE_WHD_DEBUG
3737

3838
#define WHD_ENABLE_STATS
39-
/*#define WHD_LOGGING_BUFFER_ENABLE*/
39+
#define WHD_LOGGING_BUFFER_ENABLE
4040

4141
#if defined (__GNUC__)
4242
#define WHD_TRIGGER_BREAKPOINT( ) do { __asm__ ("bkpt"); } while (0)

variants/PORTENTA_H7_M7/cflags.txt

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
-fdata-sections
2020
-ffunction-sections
2121
-fmessage-length=0
22-
-fno-exceptions
2322
-fomit-frame-pointer
2423
-funsigned-char
2524
-g

variants/PORTENTA_H7_M7/cxxflags.txt

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
-fdata-sections
2222
-ffunction-sections
2323
-fmessage-length=0
24-
-fno-exceptions
2524
-fomit-frame-pointer
2625
-funsigned-char
2726
-g

variants/PORTENTA_H7_M7/defines.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
-DFEATURE_LWIP=1
4444
-D__FPU_PRESENT=1
4545
-D__MBED__=1
46-
-DMBED_BUILD_TIMESTAMP=1593769507.0922682
46+
-DMBED_BUILD_TIMESTAMP=1594723597.151386
4747
-D__MBED_CMSIS_RTOS_CM
4848
-DMBED_HEAP_STATS_ENABLED=1
4949
-DMBED_MEM_TRACING_ENABLED=1
3.66 KB
Binary file not shown.

0 commit comments

Comments
 (0)