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
|
@ -57,12 +57,12 @@ static int spi_mcux_transfer_next_packet(struct device *dev)
|
|||
transfer.dataSize = ctx->rx_len;
|
||||
} else if (ctx->rx_len == 0) {
|
||||
/* tx only, nothing to rx */
|
||||
transfer.txData = (u8_t *) ctx->tx_buf;
|
||||
transfer.txData = (uint8_t *) ctx->tx_buf;
|
||||
transfer.rxData = NULL;
|
||||
transfer.dataSize = ctx->tx_len;
|
||||
} else if (ctx->tx_len == ctx->rx_len) {
|
||||
/* rx and tx are the same length */
|
||||
transfer.txData = (u8_t *) ctx->tx_buf;
|
||||
transfer.txData = (uint8_t *) ctx->tx_buf;
|
||||
transfer.rxData = ctx->rx_buf;
|
||||
transfer.dataSize = ctx->tx_len;
|
||||
} else if (ctx->tx_len > ctx->rx_len) {
|
||||
|
@ -70,7 +70,7 @@ static int spi_mcux_transfer_next_packet(struct device *dev)
|
|||
* rx into a longer intermediate buffer. Leave chip select
|
||||
* active between transfers.
|
||||
*/
|
||||
transfer.txData = (u8_t *) ctx->tx_buf;
|
||||
transfer.txData = (uint8_t *) ctx->tx_buf;
|
||||
transfer.rxData = ctx->rx_buf;
|
||||
transfer.dataSize = ctx->rx_len;
|
||||
transfer.configFlags |= kDSPI_MasterActiveAfterTransfer;
|
||||
|
@ -79,7 +79,7 @@ static int spi_mcux_transfer_next_packet(struct device *dev)
|
|||
* tx from a longer intermediate buffer. Leave chip select
|
||||
* active between transfers.
|
||||
*/
|
||||
transfer.txData = (u8_t *) ctx->tx_buf;
|
||||
transfer.txData = (uint8_t *) ctx->tx_buf;
|
||||
transfer.rxData = ctx->rx_buf;
|
||||
transfer.dataSize = ctx->tx_len;
|
||||
transfer.configFlags |= kDSPI_MasterActiveAfterTransfer;
|
||||
|
@ -130,8 +130,8 @@ static int spi_mcux_configure(struct device *dev,
|
|||
SPI_Type *base = config->base;
|
||||
dspi_master_config_t master_config;
|
||||
struct device *clock_dev;
|
||||
u32_t clock_freq;
|
||||
u32_t word_size;
|
||||
uint32_t clock_freq;
|
||||
uint32_t word_size;
|
||||
|
||||
if (spi_context_configured(&data->ctx, spi_cfg)) {
|
||||
/* This configuration is already in use */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue