Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 43 additions & 30 deletions bsp/stm32/libraries/HAL_Drivers/drivers/config/h7/spi_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ extern "C" {

#ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_PRIORITY
#define SPI1_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#define SPI1_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#endif /* SPI1_TX_DMA_PRIORITY */

#ifndef SPI1_TX_DMA_PREEMPT_PRIORITY
#define SPI1_TX_DMA_PREEMPT_PRIORITY 1
#define SPI1_TX_DMA_PREEMPT_PRIORITY 1
#endif /* SPI1_TX_DMA_PREEMPT_PRIORITY */

#ifndef SPI1_TX_DMA_SUB_PRIORITY
#define SPI1_TX_DMA_SUB_PRIORITY 0
#define SPI1_TX_DMA_SUB_PRIORITY 0
#endif /* SPI1_TX_DMA_SUB_PRIORITY */
#ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \
Expand All @@ -57,15 +57,15 @@ extern "C" {

#ifdef BSP_SPI1_RX_USING_DMA
#ifndef SPI1_RX_DMA_PRIORITY
#define SPI1_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#define SPI1_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#endif /* SPI1_RX_DMA_PRIORITY */

#ifndef SPI1_RX_DMA_PREEMPT_PRIORITY
#define SPI1_RX_DMA_PREEMPT_PRIORITY 0
#define SPI1_RX_DMA_PREEMPT_PRIORITY 0
#endif /* SPI1_RX_DMA_PREEMPT_PRIORITY */

#ifndef SPI1_RX_DMA_SUB_PRIORITY
#define SPI1_RX_DMA_SUB_PRIORITY 0
#define SPI1_RX_DMA_SUB_PRIORITY 0
#endif /* SPI1_RX_DMA_SUB_PRIORITY */
#ifndef SPI1_RX_DMA_CONFIG
#define SPI1_RX_DMA_CONFIG \
Expand Down Expand Up @@ -94,15 +94,15 @@ extern "C" {

#ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_PRIORITY
#define SPI2_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#define SPI2_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#endif /* SPI2_TX_DMA_PRIORITY */

#ifndef SPI2_TX_DMA_PREEMPT_PRIORITY
#define SPI2_TX_DMA_PREEMPT_PRIORITY 1
#define SPI2_TX_DMA_PREEMPT_PRIORITY 1
#endif /* SPI2_TX_DMA_PREEMPT_PRIORITY */

#ifndef SPI2_TX_DMA_SUB_PRIORITY
#define SPI2_TX_DMA_SUB_PRIORITY 0
#define SPI2_TX_DMA_SUB_PRIORITY 0
#endif /* SPI2_TX_DMA_SUB_PRIORITY */
#ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \
Expand All @@ -120,15 +120,15 @@ extern "C" {

#ifdef BSP_SPI2_RX_USING_DMA
#ifndef SPI2_RX_DMA_PRIORITY
#define SPI2_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#define SPI2_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#endif /* SPI2_RX_DMA_PRIORITY */

#ifndef SPI2_RX_DMA_PREEMPT_PRIORITY
#define SPI2_RX_DMA_PREEMPT_PRIORITY 0
#define SPI2_RX_DMA_PREEMPT_PRIORITY 0
#endif /* SPI2_RX_DMA_PREEMPT_PRIORITY */

#ifndef SPI2_RX_DMA_SUB_PRIORITY
#define SPI2_RX_DMA_SUB_PRIORITY 0
#define SPI2_RX_DMA_SUB_PRIORITY 0
#endif /* SPI2_RX_DMA_SUB_PRIORITY */
#ifndef SPI2_RX_DMA_CONFIG
#define SPI2_RX_DMA_CONFIG \
Expand Down Expand Up @@ -157,15 +157,15 @@ extern "C" {

#ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_PRIORITY
#define SPI3_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#define SPI3_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#endif /* SPI3_TX_DMA_PRIORITY */

#ifndef SPI3_TX_DMA_PREEMPT_PRIORITY
#define SPI3_TX_DMA_PREEMPT_PRIORITY 1
#define SPI3_TX_DMA_PREEMPT_PRIORITY 1
#endif /* SPI3_TX_DMA_PREEMPT_PRIORITY */

#ifndef SPI3_TX_DMA_SUB_PRIORITY
#define SPI3_TX_DMA_SUB_PRIORITY 0
#define SPI3_TX_DMA_SUB_PRIORITY 0
#endif /* SPI3_TX_DMA_SUB_PRIORITY */
#ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \
Expand All @@ -183,15 +183,15 @@ extern "C" {

#ifdef BSP_SPI3_RX_USING_DMA
#ifndef SPI3_RX_DMA_PRIORITY
#define SPI3_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#define SPI3_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#endif /* SPI3_RX_DMA_PRIORITY */

#ifndef SPI3_RX_DMA_PREEMPT_PRIORITY
#define SPI3_RX_DMA_PREEMPT_PRIORITY 0
#define SPI3_RX_DMA_PREEMPT_PRIORITY 0
#endif /* SPI3_RX_DMA_PREEMPT_PRIORITY */

#ifndef SPI3_RX_DMA_SUB_PRIORITY
#define SPI3_RX_DMA_SUB_PRIORITY 0
#define SPI3_RX_DMA_SUB_PRIORITY 0
#endif /* SPI3_RX_DMA_SUB_PRIORITY */
#ifndef SPI3_RX_DMA_CONFIG
#define SPI3_RX_DMA_CONFIG \
Expand Down Expand Up @@ -220,15 +220,15 @@ extern "C" {

#ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_PRIORITY
#define SPI4_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#define SPI4_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#endif /* SPI4_TX_DMA_PRIORITY */

#ifndef SPI4_TX_DMA_PREEMPT_PRIORITY
#define SPI4_TX_DMA_PREEMPT_PRIORITY 1
#define SPI4_TX_DMA_PREEMPT_PRIORITY 1
#endif /* SPI4_TX_DMA_PREEMPT_PRIORITY */

#ifndef SPI4_TX_DMA_SUB_PRIORITY
#define SPI4_TX_DMA_SUB_PRIORITY 0
#define SPI4_TX_DMA_SUB_PRIORITY 0
#endif /* SPI4_TX_DMA_SUB_PRIORITY */
#ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \
Expand All @@ -246,15 +246,15 @@ extern "C" {

#ifdef BSP_SPI4_RX_USING_DMA
#ifndef SPI4_RX_DMA_PRIORITY
#define SPI4_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#define SPI4_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#endif /* SPI4_RX_DMA_PRIORITY */

#ifndef SPI4_RX_DMA_PREEMPT_PRIORITY
#define SPI4_RX_DMA_PREEMPT_PRIORITY 0
#define SPI4_RX_DMA_PREEMPT_PRIORITY 0
#endif /* SPI4_RX_DMA_PREEMPT_PRIORITY */

#ifndef SPI4_RX_DMA_SUB_PRIORITY
#define SPI4_RX_DMA_SUB_PRIORITY 0
#define SPI4_RX_DMA_SUB_PRIORITY 0
#endif /* SPI4_RX_DMA_SUB_PRIORITY */
#ifndef SPI4_RX_DMA_CONFIG
#define SPI4_RX_DMA_CONFIG \
Expand Down Expand Up @@ -283,15 +283,15 @@ extern "C" {

#ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_PRIORITY
#define SPI5_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#define SPI5_TX_DMA_PRIORITY DMA_PRIORITY_LOW
#endif /* SPI5_TX_DMA_PRIORITY */

#ifndef SPI5_TX_DMA_PREEMPT_PRIORITY
#define SPI5_TX_DMA_PREEMPT_PRIORITY 1
#define SPI5_TX_DMA_PREEMPT_PRIORITY 1
#endif /* SPI5_TX_DMA_PREEMPT_PRIORITY */

#ifndef SPI5_TX_DMA_SUB_PRIORITY
#define SPI5_TX_DMA_SUB_PRIORITY 0
#define SPI5_TX_DMA_SUB_PRIORITY 0
#endif /* SPI5_TX_DMA_SUB_PRIORITY */
#ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \
Expand All @@ -309,15 +309,15 @@ extern "C" {

#ifdef BSP_SPI5_RX_USING_DMA
#ifndef SPI5_RX_DMA_PRIORITY
#define SPI5_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#define SPI5_RX_DMA_PRIORITY DMA_PRIORITY_HIGH
#endif /* SPI5_RX_DMA_PRIORITY */

#ifndef SPI5_RX_DMA_PREEMPT_PRIORITY
#define SPI5_RX_DMA_PREEMPT_PRIORITY 0
#define SPI5_RX_DMA_PREEMPT_PRIORITY 0
#endif /* SPI5_RX_DMA_PREEMPT_PRIORITY */

#ifndef SPI5_RX_DMA_SUB_PRIORITY
#define SPI5_RX_DMA_SUB_PRIORITY 0
#define SPI5_RX_DMA_SUB_PRIORITY 0
#endif /* SPI5_RX_DMA_SUB_PRIORITY */
#ifndef SPI5_RX_DMA_CONFIG
#define SPI5_RX_DMA_CONFIG \
Expand All @@ -333,6 +333,19 @@ extern "C" {
#endif /* SPI5_RX_DMA_CONFIG */
#endif /* BSP_SPI5_RX_USING_DMA */

#ifdef BSP_USING_SPI6
#ifndef SPI6_BUS_CONFIG
#define SPI6_BUS_CONFIG \
{ \
.Instance = SPI6, \
.bus_name = "spi6", \
.irq_type = SPI6_IRQn, \
}
#endif /* SPI6_BUS_CONFIG */
#endif /* BSP_USING_SPI6 */



#ifdef __cplusplus
}
#endif
Expand Down
Loading