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.
pull/1/head
Damien George 2018-03-27 20:25:24 +11:00
parent b63cc1e9ef
commit 6b51eb22c8
18 changed files with 3 additions and 17 deletions

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#include "storage.h"
#include "genhdr/pins.h"
// External SPI flash uses standard SPI interface

View File

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

View File

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

View File

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

View File

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

View File

@ -31,7 +31,6 @@
#include "timer.h"
#include "led.h"
#include "pin.h"
#include "genhdr/pins.h"
#if defined(MICROPY_HW_LED1)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,7 +33,6 @@
#include "sdcard.h"
#include "pin.h"
#include "genhdr/pins.h"
#include "bufhelper.h"
#include "dma.h"
#include "irq.h"

View File

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

View File

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

View File

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

View File

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