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:
Kumar Gala 2020-05-27 11:26:57 -05:00 committed by Kumar Gala
commit a1b77fd589
2364 changed files with 32505 additions and 32505 deletions

View file

@ -14,9 +14,9 @@
#include "flash_stm32.h"
#define STM32F7X_SECTOR_MASK ((u32_t) 0xFFFFFF07)
#define STM32F7X_SECTOR_MASK ((uint32_t) 0xFFFFFF07)
bool flash_stm32_valid_range(struct device *dev, off_t offset, u32_t len,
bool flash_stm32_valid_range(struct device *dev, off_t offset, uint32_t len,
bool write)
{
ARG_UNUSED(write);
@ -24,7 +24,7 @@ bool flash_stm32_valid_range(struct device *dev, off_t offset, u32_t len,
return flash_stm32_range_exists(dev, offset, len);
}
static int write_byte(struct device *dev, off_t offset, u8_t val)
static int write_byte(struct device *dev, off_t offset, uint8_t val)
{
FLASH_TypeDef *regs = FLASH_STM32_REGS(dev);
int rc;
@ -46,7 +46,7 @@ static int write_byte(struct device *dev, off_t offset, u8_t val)
__DSB();
/* write the data */
*((u8_t *) offset + CONFIG_FLASH_BASE_ADDRESS) = val;
*((uint8_t *) offset + CONFIG_FLASH_BASE_ADDRESS) = val;
/* flush the register write */
__DSB();
@ -56,7 +56,7 @@ static int write_byte(struct device *dev, off_t offset, u8_t val)
return rc;
}
static int erase_sector(struct device *dev, u32_t sector)
static int erase_sector(struct device *dev, uint32_t sector)
{
FLASH_TypeDef *regs = FLASH_STM32_REGS(dev);
int rc;
@ -104,8 +104,8 @@ int flash_stm32_block_erase_loop(struct device *dev, unsigned int offset,
unsigned int len)
{
struct flash_pages_info info;
u32_t start_sector, end_sector;
u32_t i;
uint32_t start_sector, end_sector;
uint32_t i;
int rc = 0;
rc = flash_get_page_info_by_offs(dev, offset, &info);
@ -135,7 +135,7 @@ int flash_stm32_write_range(struct device *dev, unsigned int offset,
int i, rc = 0;
for (i = 0; i < len; i++, offset++) {
rc = write_byte(dev, offset, ((const u8_t *) data)[i]);
rc = write_byte(dev, offset, ((const uint8_t *) data)[i]);
if (rc < 0) {
return rc;
}