Commit 80b31dc0 authored by Damien George's avatar Damien George
Browse files

stmhal: Clean up some header includes.

parent 5b509dbc
#include STM32_HAL_H
#define MICROPY_HW_BOARD_NAME "LIMIFROG" #define MICROPY_HW_BOARD_NAME "LIMIFROG"
#define MICROPY_HW_MCU_NAME "STM32L476" #define MICROPY_HW_MCU_NAME "STM32L476"
......
#include STM32_HAL_H
#define MICROPY_HW_BOARD_NAME "NUCLEO-F429ZI" #define MICROPY_HW_BOARD_NAME "NUCLEO-F429ZI"
#define MICROPY_HW_MCU_NAME "STM32F429" #define MICROPY_HW_MCU_NAME "STM32F429"
......
#include STM32_HAL_H
#define MICROPY_HW_BOARD_NAME "F429I-DISCO" #define MICROPY_HW_BOARD_NAME "F429I-DISCO"
#define MICROPY_HW_MCU_NAME "STM32F429" #define MICROPY_HW_MCU_NAME "STM32F429"
......
#include STM32_HAL_H
#define MICROPY_BOARD_EARLY_INIT STM32L476DISC_board_early_init #define MICROPY_BOARD_EARLY_INIT STM32L476DISC_board_early_init
void STM32L476DISC_board_early_init(void); void STM32L476DISC_board_early_init(void);
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "timer.h" #include "timer.h"
#include "dac.h" #include "dac.h"
......
...@@ -27,10 +27,9 @@ ...@@ -27,10 +27,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
#include STM32_HAL_H
#include "dma.h"
#include "py/obj.h" #include "py/obj.h"
#include "dma.h"
#include "irq.h" #include "irq.h"
typedef enum { typedef enum {
......
...@@ -24,11 +24,9 @@ ...@@ -24,11 +24,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include STM32_HAL_H #include "py/mpconfig.h"
#include "flash.h"
#include "mpconfigport.h"
#include "py/misc.h" #include "py/misc.h"
#include "flash.h"
typedef struct { typedef struct {
uint32_t base_address; uint32_t base_address;
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include STM32_HAL_H
#include "py/mpstate.h" #include "py/mpstate.h"
#include "py/nlr.h" #include "py/nlr.h"
#include "py/obj.h" #include "py/obj.h"
......
...@@ -27,15 +27,11 @@ ...@@ -27,15 +27,11 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include STM32_HAL_H
#include "py/nlr.h"
#include "py/obj.h" #include "py/obj.h"
#include "extmod/machine_mem.h"
#include "portmodules.h"
#include "py/objint.h" #include "py/objint.h"
#include "extmod/machine_mem.h"
#include "genhdr/modstm_mpz.h" #include "genhdr/modstm_mpz.h"
#include "portmodules.h"
STATIC const mp_rom_map_elem_t stm_module_globals_table[] = { STATIC const mp_rom_map_elem_t stm_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_stm) }, { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_stm) },
......
...@@ -26,9 +26,8 @@ ...@@ -26,9 +26,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include STM32_HAL_H
#include "py/nlr.h" #include "py/runtime.h"
#include "py/smallint.h" #include "py/smallint.h"
#include "py/obj.h" #include "py/obj.h"
#include "lib/timeutils/timeutils.h" #include "lib/timeutils/timeutils.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include STM32_HAL_H
#include "py/mpstate.h" #include "py/mpstate.h"
#include "py/runtime.h" #include "py/runtime.h"
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <string.h> #include <string.h>
#include STM32_HAL_H
#include "py/obj.h" #include "py/obj.h"
#include "rng.h" #include "rng.h"
......
...@@ -26,12 +26,9 @@ ...@@ -26,12 +26,9 @@
#include <stdio.h> #include <stdio.h>
#include STM32_HAL_H
#include "py/runtime.h" #include "py/runtime.h"
#include "rtc.h" #include "rtc.h"
#include "irq.h" #include "irq.h"
#include "mphalport.h"
/// \moduleref pyb /// \moduleref pyb
/// \class RTC - real time clock /// \class RTC - real time clock
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <stdio.h> #include <stdio.h>
#include STM32_HAL_H
#include "py/nlr.h" #include "py/nlr.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "timer.h" #include "timer.h"
......
...@@ -67,12 +67,10 @@ ...@@ -67,12 +67,10 @@
#include <stdio.h> #include <stdio.h>
#include "stm32_it.h"
#include STM32_HAL_H
#include "py/mpstate.h" #include "py/mpstate.h"
#include "py/obj.h" #include "py/obj.h"
#include "py/mphal.h" #include "py/mphal.h"
#include "stm32_it.h"
#include "pendsv.h" #include "pendsv.h"
#include "irq.h" #include "irq.h"
#include "pybthread.h" #include "pybthread.h"
......
...@@ -87,8 +87,7 @@ ...@@ -87,8 +87,7 @@
* @{ * @{
*/ */
#include "mpconfigboard.h" #include "py/mphal.h"
#include STM32_HAL_H
void __fatal_error(const char *msg); void __fatal_error(const char *msg);
......
...@@ -28,11 +28,9 @@ ...@@ -28,11 +28,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include STM32_HAL_H
#include "usbd_cdc_msc_hid.h" #include "usbd_cdc_msc_hid.h"
#include "usbd_cdc_interface.h" #include "usbd_cdc_interface.h"
#include "py/nlr.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "py/gc.h" #include "py/gc.h"
#include "timer.h" #include "timer.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
*/ */
/* Includes ------------------------------------------------------------------*/ /* Includes ------------------------------------------------------------------*/
#include STM32_HAL_H
#include "usbd_core.h" #include "usbd_core.h"
#include "py/obj.h" #include "py/obj.h"
#include "irq.h" #include "irq.h"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#define __USBD_CONF_H #define __USBD_CONF_H
/* Includes ------------------------------------------------------------------*/ /* Includes ------------------------------------------------------------------*/
#include STM32_HAL_H
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <stdio.h> #include <stdio.h>
#include STM32_HAL_H
#include "py/runtime.h" #include "py/runtime.h"
#include "wdt.h" #include "wdt.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment