diff --git a/simulator/simulator/efifeatures.h b/simulator/simulator/efifeatures.h index c9940e7338..ea11381d45 100644 --- a/simulator/simulator/efifeatures.h +++ b/simulator/simulator/efifeatures.h @@ -34,6 +34,12 @@ #define EFI_GPIO_HARDWARE FALSE +#define BOARD_TLE6240_COUNT 0 +#define BOARD_MC33972_COUNT 0 +#define BOARD_TLE8888_COUNT 0 + +#define BOARD_EXT_GPIOCHIPS (BOARD_TLE6240_COUNT + BOARD_MC33972_COUNT + BOARD_TLE8888_COUNT) + #define EFI_CLOCK_LOCKS FALSE #define EFI_FSIO TRUE diff --git a/unit_tests/efifeatures.h b/unit_tests/efifeatures.h index 278b035bdb..2e2e065932 100644 --- a/unit_tests/efifeatures.h +++ b/unit_tests/efifeatures.h @@ -21,7 +21,7 @@ #define EFI_ENABLE_CRITICAL_ENGINE_STOP TRUE #define EFI_ENABLE_ENGINE_WARNING TRUE -#define EFI_GPIO_HARDWARE FALSE +#define EFI_GPIO_HARDWARE TRUE #define FUEL_MATH_EXTREME_LOGGING FALSE diff --git a/unit_tests/global.h b/unit_tests/global.h index 3b0516e55d..f90ac9f670 100644 --- a/unit_tests/global.h +++ b/unit_tests/global.h @@ -17,6 +17,10 @@ #include "boards.h" +typedef uint32_t iomode_t; +typedef uint32_t ioportid_t; +typedef uint32_t ioportmask_t; + //#define chThdGetSelfX() 0 //#define getRemainingStack(x) (999999) #define getCurrentRemainingStack() (999999)