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

pull/1401/head
Dave Hylands 2015-07-28 08:36:26 -07:00 zatwierdzone przez Damien George
rodzic f243851ccd
commit ea8bf81058
26 zmienionych plików z 26 dodań i 25 usunięć

Wyświetl plik

@ -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 =

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

@ -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 */

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

@ -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"

Wyświetl plik

@ -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"

Wyświetl plik

@ -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);

Wyświetl plik

@ -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)

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

@ -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>