55 #ifndef FOXBMS__DMA_CFG_H_
56 #define FOXBMS__DMA_CFG_H_
64 #include "HL_sys_dma.h"
69 #define DMA_NUMBER_SPI_INTERFACES 5U
73 #define DMA_REQ_LINE_SPI1_TX (DMA_REQ1)
74 #define DMA_REQ_LINE_SPI1_RX (DMA_REQ0)
75 #define DMA_REQ_LINE_SPI2_TX (DMA_REQ3)
76 #define DMA_REQ_LINE_SPI2_RX (DMA_REQ2)
77 #define DMA_REQ_LINE_SPI3_TX (DMA_REQ15)
78 #define DMA_REQ_LINE_SPI3_RX (DMA_REQ14)
79 #define DMA_REQ_LINE_SPI4_TX (DMA_REQ25)
80 #define DMA_REQ_LINE_SPI4_RX (DMA_REQ24)
81 #define DMA_REQ_LINE_SPI5_TX (DMA_REQ31)
82 #define DMA_REQ_LINE_SPI5_RX (DMA_REQ30)
86 #define DMA_BIG_ENDIAN_ADDRESS_8BIT (3U)
88 #define DMA_BIG_ENDIAN_ADDRESS_16BIT (2U)
90 #define DMAREQEN_BIT (0x10000U)
92 #define SPIEN_BIT (0x1000000U)
96 #define DMA_REQ_LINE_LTC_TX (DMA_REQ_LINE_SPI1_TX)
97 #define DMA_REQ_LINE_LTC_RX (DMA_REQ_LINE_SPI1_RX)
102 #define DMA_REQ_LINE_N775_TX (DMA_REQ_LINE_SPI1_TX)
103 #define DMA_REQ_LINE_N775_RX (DMA_REQ_LINE_SPI5_RX)
Configuration of the battery system (e.g., number of battery modules, battery cells,...
struct DMA_REQUEST_CONFIG DMA_REQUEST_CONFIG_s
#define DMA_NUMBER_SPI_INTERFACES
DMA_REQUEST_CONFIG_s dma_spiDmaRequests[DMA_NUMBER_SPI_INTERFACES]
spiBASE_t * dma_spiInterfaces[DMA_NUMBER_SPI_INTERFACES]
struct DMA_CHANNEL_CONFIG DMA_CHANNEL_CONFIG_s
DMA_CHANNEL_CONFIG_s dma_spiDmaChannels[DMA_NUMBER_SPI_INTERFACES]
General macros and definitions for the whole platform.