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
|
@ -23,17 +23,17 @@ LOG_MODULE_REGISTER(spi_cc13xx_cc26xx);
|
|||
#include "spi_context.h"
|
||||
|
||||
struct spi_cc13xx_cc26xx_config {
|
||||
u32_t base;
|
||||
u32_t sck_pin;
|
||||
u32_t mosi_pin;
|
||||
u32_t miso_pin;
|
||||
u32_t cs_pin;
|
||||
uint32_t base;
|
||||
uint32_t sck_pin;
|
||||
uint32_t mosi_pin;
|
||||
uint32_t miso_pin;
|
||||
uint32_t cs_pin;
|
||||
};
|
||||
|
||||
struct spi_cc13xx_cc26xx_data {
|
||||
struct spi_context ctx;
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
u32_t pm_state;
|
||||
uint32_t pm_state;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -55,7 +55,7 @@ static int spi_cc13xx_cc26xx_configure(struct device *dev,
|
|||
{
|
||||
const struct spi_cc13xx_cc26xx_config *cfg = get_dev_config(dev);
|
||||
struct spi_context *ctx = &get_dev_data(dev)->ctx;
|
||||
u32_t prot;
|
||||
uint32_t prot;
|
||||
|
||||
if (spi_context_configured(ctx, config)) {
|
||||
return 0;
|
||||
|
@ -143,7 +143,7 @@ static int spi_cc13xx_cc26xx_transceive(struct device *dev,
|
|||
{
|
||||
const struct spi_cc13xx_cc26xx_config *cfg = get_dev_config(dev);
|
||||
struct spi_context *ctx = &get_dev_data(dev)->ctx;
|
||||
u32_t txd, rxd;
|
||||
uint32_t txd, rxd;
|
||||
int err;
|
||||
|
||||
spi_context_lock(ctx, false, NULL);
|
||||
|
@ -213,7 +213,7 @@ static int spi_cc13xx_cc26xx_release(struct device *dev,
|
|||
|
||||
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
|
||||
static int spi_cc13xx_cc26xx_set_power_state(struct device *dev,
|
||||
u32_t new_state)
|
||||
uint32_t new_state)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -251,13 +251,13 @@ static int spi_cc13xx_cc26xx_set_power_state(struct device *dev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int spi_cc13xx_cc26xx_pm_control(struct device *dev, u32_t ctrl_command,
|
||||
static int spi_cc13xx_cc26xx_pm_control(struct device *dev, uint32_t ctrl_command,
|
||||
void *context, device_pm_cb cb, void *arg)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (ctrl_command == DEVICE_PM_SET_POWER_STATE) {
|
||||
u32_t new_state = *((const u32_t *)context);
|
||||
uint32_t new_state = *((const uint32_t *)context);
|
||||
|
||||
if (new_state != get_dev_data(dev)->pm_state) {
|
||||
ret = spi_cc13xx_cc26xx_set_power_state(dev,
|
||||
|
@ -265,7 +265,7 @@ static int spi_cc13xx_cc26xx_pm_control(struct device *dev, u32_t ctrl_command,
|
|||
}
|
||||
} else {
|
||||
__ASSERT_NO_MSG(ctrl_command == DEVICE_PM_GET_POWER_STATE);
|
||||
*((u32_t *)context) = get_dev_data(dev)->pm_state;
|
||||
*((uint32_t *)context) = get_dev_data(dev)->pm_state;
|
||||
}
|
||||
|
||||
if (cb) {
|
||||
|
@ -295,7 +295,7 @@ static const struct spi_driver_api spi_cc13xx_cc26xx_driver_api = {
|
|||
#else
|
||||
#define SPI_CC13XX_CC26XX_POWER_SPI(n) \
|
||||
do { \
|
||||
u32_t domain, periph; \
|
||||
uint32_t domain, periph; \
|
||||
\
|
||||
/* Enable UART power domain */ \
|
||||
if (DT_INST_REG_ADDR(n) == 0x40000000) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue