a bit of header clean-up

This commit is contained in:
rusefi 2020-04-06 13:05:30 -04:00
parent 1bc5be67ab
commit 2f69beee31
4 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,7 @@
#include "eficonsole.h"
#include "memstreams.h"
#include "drivers/gpio/gpio_ext.h"
#include "tle8888.h"
#include "smart_gpio.h"
#ifndef BOARD_EXT_PINREPOPINS
#define BOARD_EXT_PINREPOPINS 0

View File

@ -9,6 +9,9 @@
#include "global.h"
#include "engine.h"
#include "efi_gpio.h"
#include "pin_repository.h"
#include "io_pins.h"
#include "smart_gpio.h"
#if EFI_GPIO_HARDWARE
@ -44,8 +47,6 @@ static ioportid_t ports[] = {GPIOA,
// todo: move this into PinRepository class
static const char *PIN_USED[PIN_REPO_SIZE + BOARD_EXT_PINREPOPINS];
#include "pin_repository.h"
#include "io_pins.h"
extern ioportid_t PORTS[];

View File

@ -15,10 +15,6 @@
#include "mpu_util.h"
#include "gpio_ext.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;
static OutputPin tle8888Cs;

View File

@ -7,6 +7,15 @@
#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 */
#define TLE6240_PIN(n) ((brain_pin_e)((int)BRAIN_PIN_LAST_ONCHIP + 1 + (n)))
/* MC33972 pins go right after TLE6240 */