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
|
@ -28,7 +28,7 @@ static int iaqcore_sample_fetch(struct device *dev, enum sensor_channel chan)
|
|||
|
||||
__ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL);
|
||||
|
||||
msg.buf = (u8_t *)&buf;
|
||||
msg.buf = (uint8_t *)&buf;
|
||||
msg.len = sizeof(struct iaq_registers);
|
||||
msg.flags = I2C_MSG_READ | I2C_MSG_STOP;
|
||||
|
||||
|
|
|
@ -11,18 +11,18 @@
|
|||
#include <sys/util.h>
|
||||
|
||||
struct iaq_registers {
|
||||
u16_t co2_pred;
|
||||
u8_t status;
|
||||
s32_t resistance;
|
||||
u16_t voc;
|
||||
uint16_t co2_pred;
|
||||
uint8_t status;
|
||||
int32_t resistance;
|
||||
uint16_t voc;
|
||||
} __packed;
|
||||
|
||||
struct iaq_core_data {
|
||||
struct device *i2c;
|
||||
u16_t co2;
|
||||
u16_t voc;
|
||||
u8_t status;
|
||||
s32_t resistance;
|
||||
uint16_t co2;
|
||||
uint16_t voc;
|
||||
uint8_t status;
|
||||
int32_t resistance;
|
||||
};
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue