stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.

This commit is contained in:
Dave Hylands 2015-07-28 08:36:26 -07:00 committed by Damien George
parent f243851ccd
commit ea8bf81058
26 changed files with 26 additions and 25 deletions

View File

@ -47,6 +47,7 @@ INC += -I../lib/timeutils
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_CORTEX_M4) $(COPT)
CFLAGS += -Iboards/$(BOARD)
CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
LDFLAGS = -nostdlib -T $(LD_FILE) -Map=$(@:.elf=.map) --cref
LIBS =

View File

@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -25,7 +25,7 @@
*/
#include <stdio.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include <string.h>
#include "py/nlr.h"

View File

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -30,7 +30,7 @@
#include <stdint.h>
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/runtime.h"
#include "lib/fatfs/ff.h" /* FatFs lower layer API */

View File

@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "dma.h"

View File

@ -24,7 +24,7 @@
* THE SOFTWARE.
*/
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "flash.h"

View File

@ -26,7 +26,7 @@
#include <stdio.h>
#include <string.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -25,7 +25,7 @@
*/
#include <stdio.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -27,7 +27,7 @@
#include <stdint.h>
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/mpstate.h"
#include "py/nlr.h"

View File

@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdint.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/obj.h"

View File

@ -26,7 +26,7 @@
#include <stdio.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/obj.h"

View File

@ -200,7 +200,7 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len);
// value from disable_irq back to enable_irq. If you really need
// to know the machine-specific values, see irq.h.
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
static inline void enable_irq(mp_uint_t state) {
__set_PRIMASK(state);

View File

@ -1,5 +1,5 @@
// We use the ST Cube HAL library for most hardware peripherals
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
// Basic GPIO functions
#define GPIO_read_pin(gpio, pin) (((gpio)->IDR >> (pin)) & 1)

View File

@ -25,7 +25,7 @@
*/
#include <stdlib.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/mpstate.h"
#include "py/runtime.h"

View File

@ -26,7 +26,7 @@
#include <string.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/obj.h"
#include "rng.h"

View File

@ -26,7 +26,7 @@
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/runtime.h"
#include "rtc.h"

View File

@ -26,7 +26,7 @@
// TODO make it work with DMA
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -26,7 +26,7 @@
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h"

View File

@ -68,7 +68,7 @@
#include <stdio.h>
#include "stm32f4xx_it.h"
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "py/obj.h"
#include "pendsv.h"

View File

@ -26,7 +26,7 @@
#include <stdint.h>
#include <string.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/obj.h"
#include "systick.h"

View File

@ -92,7 +92,7 @@
*/
#include "mpconfigboard.h"
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
void __fatal_error(const char *msg);

View File

@ -24,7 +24,7 @@
* THE SOFTWARE.
*/
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "py/obj.h"
#include "irq.h"

View File

@ -28,7 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <stm32f4xx_hal.h>
#include STM32_HAL_H
#include "usbd_cdc_msc_hid.h"
#include "usbd_cdc_interface.h"

View File

@ -30,7 +30,7 @@
*/
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "usbd_core.h"
/* Private typedef -----------------------------------------------------------*/

View File

@ -34,7 +34,7 @@
#define __USBD_CONF_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>