zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ee6fa31af6
commit
a1b77fd589
2364 changed files with 32505 additions and 32505 deletions
|
@ -18,8 +18,8 @@
|
|||
#include "lis2dw12_reg.h"
|
||||
|
||||
union axis3bit16_t {
|
||||
s16_t i16bit[3];
|
||||
u8_t u8bit[6];
|
||||
int16_t i16bit[3];
|
||||
uint8_t u8bit[6];
|
||||
};
|
||||
|
||||
#if defined(CONFIG_LIS2DW12_ODR_1_6)
|
||||
|
@ -91,15 +91,15 @@ struct lis2dw12_device_config {
|
|||
lis2dw12_mode_t pm;
|
||||
#ifdef CONFIG_LIS2DW12_TRIGGER
|
||||
const char *int_gpio_port;
|
||||
u8_t int_gpio_pin;
|
||||
u8_t int_gpio_flags;
|
||||
u8_t int_pin;
|
||||
uint8_t int_gpio_pin;
|
||||
uint8_t int_gpio_flags;
|
||||
uint8_t int_pin;
|
||||
#ifdef CONFIG_LIS2DW12_PULSE
|
||||
u8_t pulse_trigger;
|
||||
u8_t pulse_ths[3];
|
||||
u8_t pulse_shock;
|
||||
u8_t pulse_ltncy;
|
||||
u8_t pulse_quiet;
|
||||
uint8_t pulse_trigger;
|
||||
uint8_t pulse_ths[3];
|
||||
uint8_t pulse_shock;
|
||||
uint8_t pulse_ltncy;
|
||||
uint8_t pulse_quiet;
|
||||
#endif /* CONFIG_LIS2DW12_PULSE */
|
||||
#endif /* CONFIG_LIS2DW12_TRIGGER */
|
||||
};
|
||||
|
@ -110,15 +110,15 @@ struct lis2dw12_data;
|
|||
/* sensor data */
|
||||
struct lis2dw12_data {
|
||||
struct device *bus;
|
||||
s16_t acc[3];
|
||||
int16_t acc[3];
|
||||
|
||||
/* save sensitivity */
|
||||
u16_t gain;
|
||||
uint16_t gain;
|
||||
|
||||
stmdev_ctx_t *ctx;
|
||||
#ifdef CONFIG_LIS2DW12_TRIGGER
|
||||
struct device *gpio;
|
||||
u8_t gpio_pin;
|
||||
uint8_t gpio_pin;
|
||||
struct gpio_callback gpio_cb;
|
||||
sensor_trigger_handler_t drdy_handler;
|
||||
#ifdef CONFIG_LIS2DW12_PULSE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue