diff --git a/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h b/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h index d1c5702..f0e9b2d 100644 --- a/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h +++ b/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h @@ -47,7 +47,11 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "Legacy/stm32_hal_legacy.h" -#include + +// instead of including stdio.h +#ifndef NULL +#define NULL ((void*)0) +#endif /* Exported types ------------------------------------------------------------*/