This commit is contained in:
rusefi 2019-02-28 19:42:15 -05:00
parent 5432ac0849
commit 5813168e30
2 changed files with 18 additions and 4 deletions

View File

@ -414,7 +414,7 @@ typedef enum {
Force_4_bytes_size_idle_mode = ENUM_32_BITS,
} idle_mode_e;
typedef enum {
typedef enum __attribute__ ((__packed__)) {
/**
* GND for logical OFF, VCC for logical ON
*/
@ -430,7 +430,9 @@ typedef enum {
OM_OPENDRAIN_INVERTED = 3
} pin_output_mode_e;
typedef enum {
typedef enum
//__attribute__ ((__packed__))
{
PI_DEFAULT = 0,
PI_PULLUP = 1,
PI_PULLDOWN = 2
@ -557,7 +559,9 @@ typedef enum {
* Frankenso analog #12 PC4 ADC14
*/
typedef enum {
typedef enum
//__attribute__ ((__packed__))
{
EFI_ADC_0 = 0, // PA0
EFI_ADC_1 = 1, // PA1
EFI_ADC_2 = 2, // PA2
@ -613,7 +617,9 @@ typedef enum {
/**
* Hardware pin. This enum is platform-specific.
*/
typedef enum {
typedef enum
//__attribute__ ((__packed__))
{
GPIO_UNASSIGNED = 0,
GPIO_INVALID = 1,

View File

@ -14,6 +14,14 @@
#include "maf.h"
#include "advance_map.h"
TEST(misc, structSize) {
// ASSERT_EQ(1, sizeof(adc_channel_e)) << "small enum size";
// ASSERT_EQ(1, sizeof(pin_input_mode_e)) << "small enum size";
ASSERT_EQ(1, sizeof(pin_output_mode_e)) << "small enum size";
// ASSERT_EQ(1, sizeof(brain_pin_e)) << "small enum size";
// ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));
}
TEST(misc, testIgnitionPlanning) {
printf("*************************************************** testIgnitionPlanning\r\n");
WITH_ENGINE_TEST_HELPER(FORD_ESCORT_GT);