mirror of https://github.com/FOME-Tech/fome-fw.git
This commit is contained in:
parent
d06337e2f5
commit
1f2ac36ca4
|
@ -430,9 +430,7 @@ typedef enum __attribute__ ((__packed__)) {
|
||||||
OM_OPENDRAIN_INVERTED = 3
|
OM_OPENDRAIN_INVERTED = 3
|
||||||
} pin_output_mode_e;
|
} pin_output_mode_e;
|
||||||
|
|
||||||
typedef enum
|
typedef enum __attribute__ ((__packed__)) {
|
||||||
//__attribute__ ((__packed__))
|
|
||||||
{
|
|
||||||
PI_DEFAULT = 0,
|
PI_DEFAULT = 0,
|
||||||
PI_PULLUP = 1,
|
PI_PULLUP = 1,
|
||||||
PI_PULLDOWN = 2
|
PI_PULLDOWN = 2
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
TEST(misc, structSize) {
|
TEST(misc, structSize) {
|
||||||
// ASSERT_EQ(1, sizeof(adc_channel_e)) << "small enum size";
|
// 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_input_mode_e)) << "small enum size";
|
||||||
ASSERT_EQ(1, sizeof(pin_output_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(1, sizeof(brain_pin_e)) << "small enum size";
|
||||||
// ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));
|
// ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));
|
||||||
|
|
Loading…
Reference in New Issue