Skip to content

Commit 80b31dc

Browse files
committed
stmhal: Clean up some header includes.
1 parent 5b509db commit 80b31dc

20 files changed

Lines changed: 8 additions & 46 deletions

File tree

stmhal/boards/LIMIFROG/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include STM32_HAL_H
2-
31
#define MICROPY_HW_BOARD_NAME "LIMIFROG"
42
#define MICROPY_HW_MCU_NAME "STM32L476"
53

stmhal/boards/NUCLEO_F429ZI/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include STM32_HAL_H
2-
31
#define MICROPY_HW_BOARD_NAME "NUCLEO-F429ZI"
42
#define MICROPY_HW_MCU_NAME "STM32F429"
53

stmhal/boards/STM32F429DISC/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include STM32_HAL_H
2-
31
#define MICROPY_HW_BOARD_NAME "F429I-DISCO"
42
#define MICROPY_HW_MCU_NAME "STM32F429"
53

stmhal/boards/STM32L476DISC/mpconfigboard.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include STM32_HAL_H
2-
31
#define MICROPY_BOARD_EARLY_INIT STM32L476DISC_board_early_init
42
void STM32L476DISC_board_early_init(void);
53

stmhal/dac.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#include <stdint.h>
2929
#include <string.h>
3030

31-
#include STM32_HAL_H
32-
33-
#include "py/nlr.h"
3431
#include "py/runtime.h"
3532
#include "timer.h"
3633
#include "dac.h"

stmhal/dma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
#include <stdio.h>
2828
#include <string.h>
2929
#include <stdint.h>
30-
#include STM32_HAL_H
3130

32-
#include "dma.h"
3331
#include "py/obj.h"
32+
#include "dma.h"
3433
#include "irq.h"
3534

3635
typedef enum {

stmhal/flash.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include STM32_HAL_H
28-
29-
#include "flash.h"
30-
#include "mpconfigport.h"
27+
#include "py/mpconfig.h"
3128
#include "py/misc.h"
29+
#include "flash.h"
3230

3331
typedef struct {
3432
uint32_t base_address;

stmhal/modpyb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <stdint.h>
2828
#include <stdio.h>
2929

30-
#include STM32_HAL_H
31-
3230
#include "py/mpstate.h"
3331
#include "py/nlr.h"
3432
#include "py/obj.h"

stmhal/modstm.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@
2727
#include <stdio.h>
2828
#include <stdint.h>
2929

30-
#include STM32_HAL_H
31-
32-
#include "py/nlr.h"
3330
#include "py/obj.h"
34-
#include "extmod/machine_mem.h"
35-
#include "portmodules.h"
36-
3731
#include "py/objint.h"
32+
#include "extmod/machine_mem.h"
3833
#include "genhdr/modstm_mpz.h"
34+
#include "portmodules.h"
3935

4036
STATIC const mp_rom_map_elem_t stm_module_globals_table[] = {
4137
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_stm) },

stmhal/modutime.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626

2727
#include <stdio.h>
2828
#include <string.h>
29-
#include STM32_HAL_H
3029

31-
#include "py/nlr.h"
30+
#include "py/runtime.h"
3231
#include "py/smallint.h"
3332
#include "py/obj.h"
3433
#include "lib/timeutils/timeutils.h"

0 commit comments

Comments
 (0)