From bac1f17cf6ce225876dc7b6b2a809bcd98010391 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Wed, 2 Dec 2020 16:41:57 +0000 Subject: refactor(app): replace Zephyr integer types with C99 integer types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/drivers/sensor/ec11/ec11.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/drivers/sensor/ec11/ec11.h') 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; -- cgit v1.2.3