Skip to content

Commit 13400e1

Browse files
author
Krzysztof Blazewicz
committed
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"
1 parent 8fa0733 commit 13400e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stmhal/hal/f4/inc/stm32f4xx_hal_def.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
/* Includes ------------------------------------------------------------------*/
4848
#include "stm32f4xx.h"
4949
#include "Legacy/stm32_hal_legacy.h"
50-
#include <stdio.h>
50+
#ifndef NULL
51+
#define NULL (void*)0
52+
#endif
5153

5254
/* Exported types ------------------------------------------------------------*/
5355

0 commit comments

Comments
 (0)