summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKrzysztof Blazewicz <krzysztof.blazewicz@uxeon.com>2016-10-12 18:14:30 +0200
committerKrzysztof Blazewicz <krzysztof.blazewicz@uxeon.com>2016-11-16 12:43:27 +0100
commit13400e13758f7e23fc17bae753030723046ba3aa (patch)
treea96fb75c617ba38e90edb136fd58bd32a9a2be59
parent8fa073364702e785226741012b5e94b6d2bf9674 (diff)
downloadmicropython-13400e13758f7e23fc17bae753030723046ba3aa.tar.gz
micropython-13400e13758f7e23fc17bae753030723046ba3aa.zip
stmhal/hal: do not include <stdio.h> in HAL headers
stdio.h was included in all HAL files only to provide definition of NULL symbol "stdio.h" includes "types.h" which contains some conflicting definitions with "drivers/cc3000/inc/socket.h"
-rw-r--r--stmhal/hal/f4/inc/stm32f4xx_hal_def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/stmhal/hal/f4/inc/stm32f4xx_hal_def.h b/stmhal/hal/f4/inc/stm32f4xx_hal_def.h
index 11ae7a1cf5..e7858ac2c9 100644
--- a/stmhal/hal/f4/inc/stm32f4xx_hal_def.h
+++ b/stmhal/hal/f4/inc/stm32f4xx_hal_def.h
@@ -47,7 +47,9 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "Legacy/stm32_hal_legacy.h"
-#include <stdio.h>
+#ifndef NULL
+#define NULL (void*)0
+#endif
/* Exported types ------------------------------------------------------------*/