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
|
@ -11,16 +11,16 @@
|
|||
#define DMA_STM32_MAX_DATA_ITEMS 0xffff
|
||||
|
||||
struct dma_stm32_stream {
|
||||
u32_t direction;
|
||||
uint32_t direction;
|
||||
#ifdef CONFIG_DMAMUX_STM32
|
||||
int mux_channel; /* stores the dmamux channel */
|
||||
#endif /* CONFIG_DMAMUX_STM32 */
|
||||
bool source_periph;
|
||||
bool busy;
|
||||
u32_t src_size;
|
||||
u32_t dst_size;
|
||||
uint32_t src_size;
|
||||
uint32_t dst_size;
|
||||
void *callback_arg; /* holds the client data */
|
||||
void (*dma_callback)(void *arg, u32_t id,
|
||||
void (*dma_callback)(void *arg, uint32_t id,
|
||||
int error_code);
|
||||
};
|
||||
|
||||
|
@ -33,7 +33,7 @@ struct dma_stm32_config {
|
|||
struct stm32_pclken pclken;
|
||||
void (*config_irq)(struct device *dev);
|
||||
bool support_m2m;
|
||||
u32_t base;
|
||||
uint32_t base;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DMA_STM32_V1
|
||||
|
@ -45,43 +45,43 @@ struct dma_stm32_config {
|
|||
#define STREAM_OFFSET 1
|
||||
#endif /* CONFIG_DMA_STM32_V1 */
|
||||
|
||||
extern u32_t table_ll_stream[];
|
||||
extern u32_t (*func_ll_is_active_tc[])(DMA_TypeDef *DMAx);
|
||||
extern uint32_t table_ll_stream[];
|
||||
extern uint32_t (*func_ll_is_active_tc[])(DMA_TypeDef *DMAx);
|
||||
extern void (*func_ll_clear_tc[])(DMA_TypeDef *DMAx);
|
||||
extern u32_t (*func_ll_is_active_ht[])(DMA_TypeDef *DMAx);
|
||||
extern uint32_t (*func_ll_is_active_ht[])(DMA_TypeDef *DMAx);
|
||||
extern void (*func_ll_clear_ht[])(DMA_TypeDef *DMAx);
|
||||
#ifdef CONFIG_DMA_STM32_V2
|
||||
extern u32_t (*func_ll_is_active_gi[])(DMA_TypeDef *DMAx);
|
||||
extern uint32_t (*func_ll_is_active_gi[])(DMA_TypeDef *DMAx);
|
||||
extern void (*func_ll_clear_gi[])(DMA_TypeDef *DMAx);
|
||||
#endif
|
||||
#ifdef CONFIG_DMA_STM32_V1
|
||||
extern u32_t table_ll_channel[];
|
||||
extern uint32_t table_ll_channel[];
|
||||
#endif
|
||||
|
||||
void stm32_dma_dump_stream_irq(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_clear_stream_irq(DMA_TypeDef *dma, u32_t id);
|
||||
bool stm32_dma_is_irq_happened(DMA_TypeDef *dma, u32_t id);
|
||||
bool stm32_dma_is_unexpected_irq_happened(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_enable_stream(DMA_TypeDef *dma, u32_t id);
|
||||
int stm32_dma_disable_stream(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_config_channel_function(DMA_TypeDef *dma, u32_t id, u32_t slot);
|
||||
void stm32_dma_dump_stream_irq(DMA_TypeDef *dma, uint32_t id);
|
||||
void stm32_dma_clear_stream_irq(DMA_TypeDef *dma, uint32_t id);
|
||||
bool stm32_dma_is_irq_happened(DMA_TypeDef *dma, uint32_t id);
|
||||
bool stm32_dma_is_unexpected_irq_happened(DMA_TypeDef *dma, uint32_t id);
|
||||
void stm32_dma_enable_stream(DMA_TypeDef *dma, uint32_t id);
|
||||
int stm32_dma_disable_stream(DMA_TypeDef *dma, uint32_t id);
|
||||
void stm32_dma_config_channel_function(DMA_TypeDef *dma, uint32_t id, uint32_t slot);
|
||||
|
||||
#ifdef CONFIG_DMA_STM32_V1
|
||||
void stm32_dma_disable_fifo_irq(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_disable_fifo_irq(DMA_TypeDef *dma, uint32_t id);
|
||||
bool stm32_dma_check_fifo_mburst(LL_DMA_InitTypeDef *DMAx);
|
||||
u32_t stm32_dma_get_fifo_threshold(u16_t fifo_mode_control);
|
||||
u32_t stm32_dma_get_mburst(struct dma_config *config, bool source_periph);
|
||||
u32_t stm32_dma_get_pburst(struct dma_config *config, bool source_periph);
|
||||
uint32_t stm32_dma_get_fifo_threshold(uint16_t fifo_mode_control);
|
||||
uint32_t stm32_dma_get_mburst(struct dma_config *config, bool source_periph);
|
||||
uint32_t stm32_dma_get_pburst(struct dma_config *config, bool source_periph);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DMAMUX_STM32
|
||||
/* dma_stm32_ api functions are exported to the dmamux_stm32 */
|
||||
int dma_stm32_configure(struct device *dev, u32_t id,
|
||||
int dma_stm32_configure(struct device *dev, uint32_t id,
|
||||
struct dma_config *config);
|
||||
int dma_stm32_reload(struct device *dev, u32_t id,
|
||||
u32_t src, u32_t dst, size_t size);
|
||||
int dma_stm32_start(struct device *dev, u32_t id);
|
||||
int dma_stm32_stop(struct device *dev, u32_t id);
|
||||
int dma_stm32_reload(struct device *dev, uint32_t id,
|
||||
uint32_t src, uint32_t dst, size_t size);
|
||||
int dma_stm32_start(struct device *dev, uint32_t id);
|
||||
int dma_stm32_stop(struct device *dev, uint32_t id);
|
||||
#endif /* CONFIG_DMAMUX_STM32 */
|
||||
|
||||
#endif /* DMA_STM32_H_*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue