Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 4 | ||
---|---|---|---|
Line 194... | Line 194... | ||
194 | hdma_spi1_tx.Instance = DMA1_Channel3; |
194 | hdma_spi1_tx.Instance = DMA1_Channel3; |
195 | hdma_spi1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; |
195 | hdma_spi1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; |
196 | hdma_spi1_tx.Init.PeriphInc = DMA_PINC_DISABLE; |
196 | hdma_spi1_tx.Init.PeriphInc = DMA_PINC_DISABLE; |
197 | hdma_spi1_tx.Init.MemInc = DMA_MINC_ENABLE; |
197 | hdma_spi1_tx.Init.MemInc = DMA_MINC_ENABLE; |
198 | hdma_spi1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; |
198 | hdma_spi1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; |
199 | hdma_spi1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_WORD; |
199 | hdma_spi1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; |
200 | hdma_spi1_tx.Init.Mode = DMA_NORMAL; |
200 | hdma_spi1_tx.Init.Mode = DMA_NORMAL; |
201 | hdma_spi1_tx.Init.Priority = DMA_PRIORITY_LOW; |
201 | hdma_spi1_tx.Init.Priority = DMA_PRIORITY_HIGH; |
202 | if (HAL_DMA_Init(&hdma_spi1_tx) != HAL_OK) |
202 | if (HAL_DMA_Init(&hdma_spi1_tx) != HAL_OK) |
203 | { |
203 | { |
204 | Error_Handler(); |
204 | Error_Handler(); |
205 | } |
205 | } |
206 | 206 |