mirror of https://github.com/FOME-Tech/fome-fw.git
smart gpio clean-up
This commit is contained in:
parent
c1ab5ca585
commit
3888ffc007
|
@ -24,10 +24,6 @@
|
||||||
/* do not use serial device for console */
|
/* do not use serial device for console */
|
||||||
#undef TS_SERIAL_DEVICE
|
#undef TS_SERIAL_DEVICE
|
||||||
|
|
||||||
/* additional space for pins on gpioext */
|
|
||||||
#undef BOARD_EXT_PINREPOPINS
|
|
||||||
#define BOARD_EXT_PINREPOPINS (16 + 22)
|
|
||||||
|
|
||||||
#undef EFI_RTC
|
#undef EFI_RTC
|
||||||
#define EFI_RTC FALSE
|
#define EFI_RTC FALSE
|
||||||
|
|
||||||
|
|
|
@ -146,10 +146,6 @@
|
||||||
#define BOARD_TLE8888_COUNT 1
|
#define BOARD_TLE8888_COUNT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// todo: move this outside of efifeatures.h
|
|
||||||
#define BOARD_EXT_PINREPOPINS 24
|
|
||||||
|
|
||||||
#define EFI_ANALOG_SENSORS TRUE
|
#define EFI_ANALOG_SENSORS TRUE
|
||||||
|
|
||||||
#ifndef EFI_MAX_31855
|
#ifndef EFI_MAX_31855
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
#include "drivers/gpio/gpio_ext.h"
|
#include "drivers/gpio/gpio_ext.h"
|
||||||
#include "smart_gpio.h"
|
#include "smart_gpio.h"
|
||||||
|
|
||||||
#ifndef BOARD_EXT_PINREPOPINS
|
|
||||||
#define BOARD_EXT_PINREPOPINS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static bool initialized = false;
|
static bool initialized = false;
|
||||||
|
|
||||||
static LoggingWithStorage logger("pin repos");
|
static LoggingWithStorage logger("pin repos");
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
#include "drivers/gpio/tle6240.h"
|
#include "drivers/gpio/tle6240.h"
|
||||||
#include "drivers/gpio/mc33972.h"
|
#include "drivers/gpio/mc33972.h"
|
||||||
#include "drivers/gpio/tle8888.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 */
|
#else /* EFI_PROD_CODE */
|
||||||
|
#define BOARD_EXT_PINREPOPINS 0
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
#if EFI_UNIT_TEST
|
#if EFI_UNIT_TEST
|
||||||
|
|
Loading…
Reference in New Issue