drivers: dma: clean up header
Move tables declaration as they are only used locally for now Signed-off-by: Francois Ramu <francois.ramu@st.com> Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
de4ba27539
commit
1b0503d2cd
2 changed files with 12 additions and 12 deletions
|
@ -24,6 +24,18 @@
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_REGISTER(dma_stm32, CONFIG_DMA_LOG_LEVEL);
|
LOG_MODULE_REGISTER(dma_stm32, CONFIG_DMA_LOG_LEVEL);
|
||||||
|
|
||||||
|
static u32_t table_m_size[] = {
|
||||||
|
LL_DMA_MDATAALIGN_BYTE,
|
||||||
|
LL_DMA_MDATAALIGN_HALFWORD,
|
||||||
|
LL_DMA_MDATAALIGN_WORD,
|
||||||
|
};
|
||||||
|
|
||||||
|
static u32_t table_p_size[] = {
|
||||||
|
LL_DMA_PDATAALIGN_BYTE,
|
||||||
|
LL_DMA_PDATAALIGN_HALFWORD,
|
||||||
|
LL_DMA_PDATAALIGN_WORD,
|
||||||
|
};
|
||||||
|
|
||||||
static void dma_stm32_dump_stream_irq(struct device *dev, u32_t id)
|
static void dma_stm32_dump_stream_irq(struct device *dev, u32_t id)
|
||||||
{
|
{
|
||||||
const struct dma_stm32_config *config = dev->config->config_info;
|
const struct dma_stm32_config *config = dev->config->config_info;
|
||||||
|
|
|
@ -7,18 +7,6 @@
|
||||||
#ifndef DMA_STM32_H_
|
#ifndef DMA_STM32_H_
|
||||||
#define DMA_STM32_H_
|
#define DMA_STM32_H_
|
||||||
|
|
||||||
static u32_t table_m_size[] = {
|
|
||||||
LL_DMA_MDATAALIGN_BYTE,
|
|
||||||
LL_DMA_MDATAALIGN_HALFWORD,
|
|
||||||
LL_DMA_MDATAALIGN_WORD,
|
|
||||||
};
|
|
||||||
|
|
||||||
static u32_t table_p_size[] = {
|
|
||||||
LL_DMA_PDATAALIGN_BYTE,
|
|
||||||
LL_DMA_PDATAALIGN_HALFWORD,
|
|
||||||
LL_DMA_PDATAALIGN_WORD,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Maximum data sent in single transfer (Bytes) */
|
/* Maximum data sent in single transfer (Bytes) */
|
||||||
#define DMA_STM32_MAX_DATA_ITEMS 0xffff
|
#define DMA_STM32_MAX_DATA_ITEMS 0xffff
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue