smart gpio clean-up

This commit is contained in:
rusefi 2020-04-06 14:28:08 -04:00
parent d3745c0f9e
commit 66570a0f28
6 changed files with 2 additions and 19 deletions

View File

@ -347,9 +347,6 @@
#define BOARD_MC33972_COUNT 0
#define BOARD_TLE8888_COUNT 0
// todo: move this outside of efifeatures.h
#define BOARD_EXT_PINREPOPINS 24
#define TLE6240_SS_PORT GPIOB
#define TLE6240_SS_PAD 0U
#define TLE6240_RESET_PORT NULL

View File

@ -86,10 +86,6 @@
#define BOARD_MC33972_COUNT 0
#define BOARD_TLE8888_COUNT 0
// Future: move these outside of efifeatures.h
#define BOARD_EXT_PINREPOPINS 24
/**
* if you have a 60-2 trigger, or if you just want better performance, you
* probably want EFI_ENABLE_ASSERTS to be FALSE. Also you would probably want to FALSE

View File

@ -24,10 +24,6 @@
/* do not use serial device for console */
#undef TS_SERIAL_DEVICE
/* additional space for pins on gpioext */
#undef BOARD_EXT_PINREPOPINS
#define BOARD_EXT_PINREPOPINS (16 + 22)
#undef EFI_RTC
#define EFI_RTC FALSE

View File

@ -146,10 +146,6 @@
#define BOARD_TLE8888_COUNT 1
#endif
// todo: move this outside of efifeatures.h
#define BOARD_EXT_PINREPOPINS 24
#define EFI_ANALOG_SENSORS TRUE
#ifndef EFI_MAX_31855

View File

@ -18,10 +18,6 @@
#include "drivers/gpio/gpio_ext.h"
#include "smart_gpio.h"
#ifndef BOARD_EXT_PINREPOPINS
#define BOARD_EXT_PINREPOPINS 0
#endif
static bool initialized = false;
static LoggingWithStorage logger("pin repos");

View File

@ -12,8 +12,10 @@
#include "drivers/gpio/tle6240.h"
#include "drivers/gpio/mc33972.h"
#include "drivers/gpio/tle8888.h"
#define BOARD_EXT_PINREPOPINS (BOARD_TLE6240_COUNT * TLE6240_OUTPUTS + BOARD_MC33972_COUNT * MC33972_INPUTS + BOARD_TLE8888_COUNT * TLE8888_OUTPUTS)
#else /* EFI_PROD_CODE */
#define BOARD_EXT_PINREPOPINS 0
#endif /* EFI_PROD_CODE */
#if EFI_UNIT_TEST