diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-12-02 16:41:57 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-14 12:41:25 -0500 |
commit | bac1f17cf6ce225876dc7b6b2a809bcd98010391 (patch) | |
tree | 9783743b31fdadd66d1b3c9e5a3e14dc661ec313 /app/drivers/sensor/ec11/ec11.h | |
parent | a4652fa25da83ae036613157fb566eb1ce1426fe (diff) |
refactor(app): replace Zephyr integer types with C99 integer types
u8_t → uint8_t
u16_t → uint16_t
u32_t → uint32_t
u64_t → uint64_t
s8_t → int8_t
s16_t → int16_t
s32_t → int32_t
s64_t → int64_t
Prerequisite for #223
See: https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.4.0
PR: #467
Diffstat (limited to 'app/drivers/sensor/ec11/ec11.h')
-rw-r--r-- | app/drivers/sensor/ec11/ec11.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/drivers/sensor/ec11/ec11.h b/app/drivers/sensor/ec11/ec11.h index e62e733..029f66b 100644 --- a/app/drivers/sensor/ec11/ec11.h +++ b/app/drivers/sensor/ec11/ec11.h @@ -12,23 +12,23 @@ struct ec11_config { const char *a_label; - const u8_t a_pin; - const u8_t a_flags; + const uint8_t a_pin; + const uint8_t a_flags; const char *b_label; - const u8_t b_pin; - const u8_t b_flags; + const uint8_t b_pin; + const uint8_t b_flags; - const u8_t resolution; + const uint8_t resolution; }; struct ec11_data { struct device *a; struct device *b; - u8_t ab_state; - s8_t pulses; - s8_t ticks; - s8_t delta; + uint8_t ab_state; + int8_t pulses; + int8_t ticks; + int8_t delta; #ifdef CONFIG_EC11_TRIGGER struct gpio_callback a_gpio_cb; |