a bit of header clean-up
This commit is contained in:
parent
1bc5be67ab
commit
2f69beee31
|
@ -16,7 +16,7 @@
|
||||||
#include "eficonsole.h"
|
#include "eficonsole.h"
|
||||||
#include "memstreams.h"
|
#include "memstreams.h"
|
||||||
#include "drivers/gpio/gpio_ext.h"
|
#include "drivers/gpio/gpio_ext.h"
|
||||||
#include "tle8888.h"
|
#include "smart_gpio.h"
|
||||||
|
|
||||||
#ifndef BOARD_EXT_PINREPOPINS
|
#ifndef BOARD_EXT_PINREPOPINS
|
||||||
#define BOARD_EXT_PINREPOPINS 0
|
#define BOARD_EXT_PINREPOPINS 0
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "efi_gpio.h"
|
#include "efi_gpio.h"
|
||||||
|
#include "pin_repository.h"
|
||||||
|
#include "io_pins.h"
|
||||||
|
#include "smart_gpio.h"
|
||||||
|
|
||||||
#if EFI_GPIO_HARDWARE
|
#if EFI_GPIO_HARDWARE
|
||||||
|
|
||||||
|
@ -44,8 +47,6 @@ static ioportid_t ports[] = {GPIOA,
|
||||||
// todo: move this into PinRepository class
|
// todo: move this into PinRepository class
|
||||||
static const char *PIN_USED[PIN_REPO_SIZE + BOARD_EXT_PINREPOPINS];
|
static const char *PIN_USED[PIN_REPO_SIZE + BOARD_EXT_PINREPOPINS];
|
||||||
|
|
||||||
#include "pin_repository.h"
|
|
||||||
#include "io_pins.h"
|
|
||||||
|
|
||||||
extern ioportid_t PORTS[];
|
extern ioportid_t PORTS[];
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,6 @@
|
||||||
#include "mpu_util.h"
|
#include "mpu_util.h"
|
||||||
#include "gpio_ext.h"
|
#include "gpio_ext.h"
|
||||||
#include "pin_repository.h"
|
#include "pin_repository.h"
|
||||||
#include "drivers/gpio/tle6240.h"
|
|
||||||
#include "drivers/gpio/mc33972.h"
|
|
||||||
#include "drivers/gpio/mc33810.h"
|
|
||||||
#include "drivers/gpio/tle8888.h"
|
|
||||||
|
|
||||||
EXTERN_CONFIG;
|
EXTERN_CONFIG;
|
||||||
static OutputPin tle8888Cs;
|
static OutputPin tle8888Cs;
|
||||||
|
|
|
@ -7,6 +7,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
#include "drivers/gpio/mc33810.h"
|
||||||
|
#include "drivers/gpio/tle6240.h"
|
||||||
|
#include "drivers/gpio/mc33972.h"
|
||||||
|
#include "drivers/gpio/tle8888.h"
|
||||||
|
|
||||||
|
#else /* EFI_PROD_CODE */
|
||||||
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
/* TLE6240 pins go right after on chips */
|
/* TLE6240 pins go right after on chips */
|
||||||
#define TLE6240_PIN(n) ((brain_pin_e)((int)BRAIN_PIN_LAST_ONCHIP + 1 + (n)))
|
#define TLE6240_PIN(n) ((brain_pin_e)((int)BRAIN_PIN_LAST_ONCHIP + 1 + (n)))
|
||||||
/* MC33972 pins go right after TLE6240 */
|
/* MC33972 pins go right after TLE6240 */
|
||||||
|
|
Loading…
Reference in New Issue