Browse Source

F4_HAL/def: Define NULL instead of including stdio.h.

The definition of NULL is the only reason stdio.h is needed, and including
this standard header clashes with a CC3000 driver's definitions because
the latter wants to redefine built-in macros.  The patch here is the
simplest way to deal with this but the proper fix is really to modify the
CC3000 driver.
work-f1-1.10.2
Damien George 7 years ago
committed by Damien George
parent
commit
8005c5e7b7
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h

+ 5
- 1
STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h View File

@@ -47,7 +47,11 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "Legacy/stm32_hal_legacy.h"
#include <stdio.h>

// instead of including stdio.h
#ifndef NULL
#define NULL ((void*)0)
#endif

/* Exported types ------------------------------------------------------------*/



Loading…
Cancel
Save