stm32: Consolidate include of genhdr/pins.h to single location in pin.h.
genhdr/pins.h is an internal header file that defines all of the pin objects and it's cleaner to have pin.h include it (where the struct's for these objects are defined) rather than an explicit include by every user.
This commit is contained in:
parent
b63cc1e9ef
commit
6b51eb22c8
@ -30,7 +30,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "py/runtime.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "i2c.h"
|
||||
#include "accel.h"
|
||||
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "adc.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "timer.h"
|
||||
|
||||
#if MICROPY_HW_ENABLE_ADC
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "storage.h"
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
// External SPI flash uses standard SPI interface
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "py/mphal.h"
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
void STM32L476DISC_board_early_init(void) {
|
||||
// set SPI flash WP and HOLD pins high
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include "dac.h"
|
||||
#include "dma.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
/// \moduleref pyb
|
||||
/// \class DAC - digital to analog conversion
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "irq.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "bufhelper.h"
|
||||
#include "dma.h"
|
||||
#include "i2c.h"
|
||||
|
@ -33,7 +33,6 @@
|
||||
#if MICROPY_HW_HAS_LCD
|
||||
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "bufhelper.h"
|
||||
#include "spi.h"
|
||||
#include "font_petme128_8x8.h"
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "timer.h"
|
||||
#include "led.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
#if defined(MICROPY_HW_LED1)
|
||||
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "py/mperrno.h"
|
||||
#include "extmod/machine_i2c.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "i2c.h"
|
||||
|
||||
#if MICROPY_HW_ENABLE_HW_I2C
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "lib/netutils/netutils.h"
|
||||
#include "modnetwork.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "spi.h"
|
||||
|
||||
#include "hci.h"
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include "lib/netutils/netutils.h"
|
||||
#include "modnetwork.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "spi.h"
|
||||
|
||||
#include "ethernet/wizchip_conf.h"
|
||||
|
@ -63,6 +63,9 @@ typedef struct {
|
||||
extern const mp_obj_type_t pin_type;
|
||||
extern const mp_obj_type_t pin_af_type;
|
||||
|
||||
// Include all of the individual pin objects
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const pin_obj_t *pin;
|
||||
|
@ -28,7 +28,6 @@
|
||||
|
||||
#include "py/mperrno.h"
|
||||
#include "py/mphal.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "qspi.h"
|
||||
|
||||
#if defined(MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2)
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
#include "sdcard.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "bufhelper.h"
|
||||
#include "dma.h"
|
||||
#include "irq.h"
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "py/runtime.h"
|
||||
#include "py/mphal.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "timer.h"
|
||||
#include "servo.h"
|
||||
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "extmod/machine_spi.h"
|
||||
#include "irq.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "bufhelper.h"
|
||||
#include "spi.h"
|
||||
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "uart.h"
|
||||
#include "irq.h"
|
||||
#include "genhdr/pins.h"
|
||||
|
||||
/// \moduleref pyb
|
||||
/// \class UART - duplex serial communication bus
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include "py/mphal.h"
|
||||
#include "extint.h"
|
||||
#include "pin.h"
|
||||
#include "genhdr/pins.h"
|
||||
#include "usrsw.h"
|
||||
|
||||
#if MICROPY_HW_HAS_SWITCH
|
||||
|
Loading…
Reference in New Issue
Block a user