Merge pull request #10841 from VVESTM/vve_10827_spi_count

TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference
pull/10868/head
Martin Kojtal 2019-06-26 09:09:38 +01:00 committed by GitHub
commit 924af9481e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
82 changed files with 82 additions and 1 deletions

View File

@ -50,6 +50,7 @@ typedef enum {
UART_2 = (int)USART2_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -46,6 +46,7 @@ typedef enum {
UART_2 = (int)USART2_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -44,6 +44,7 @@ typedef enum {
UART_1 = (int)USART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE
} SPIName;

View File

@ -46,6 +46,7 @@ typedef enum {
UART_2 = (int)USART2_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE // for compilation

View File

@ -47,6 +47,7 @@ typedef enum {
UART_4 = (int)USART4_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -51,6 +51,7 @@ typedef enum {
UART_4 = (int)USART4_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -55,6 +55,7 @@ typedef enum {
UART_8 = (int)USART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -46,6 +46,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -50,6 +50,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -46,6 +46,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -55,6 +55,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_2 = (int)SPI2_BASE,
SPI_3 = (int)SPI3_BASE

View File

@ -52,6 +52,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE
} SPIName;

View File

@ -55,6 +55,7 @@ typedef enum {
UART_5 = (int)UART5_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
UART_5 = (int)UART5_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,12 +55,12 @@ typedef enum {
UART_5 = (int)UART5_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,
SPI_3 = (int)SPI3_BASE,
SPI_4 = (int)SPI4_BASE
} SPIName;
typedef enum {

View File

@ -52,6 +52,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE
} SPIName;

View File

@ -52,6 +52,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE
} SPIName;

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
#define STDIO_UART_RX PB_7
#define STDIO_UART UART_1
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -60,6 +60,7 @@ typedef enum {
#define STDIO_UART_RX PA_3
#define STDIO_UART UART_2
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
#define STDIO_UART_RX PA_10
#define STDIO_UART UART_1
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -58,6 +58,7 @@ typedef enum {
UART_6 = (int)USART6_BASE,
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -56,6 +56,7 @@ typedef enum {
UART_6 = (int)USART6_BASE,
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -51,6 +51,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE, ELMO_RF_SPI2 = SPI_1,
SPI_2 = (int)SPI2_BASE, ELMO_SPI1 = SPI_2,

View File

@ -46,6 +46,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
#define STDIO_UART_RX PB_7
#define STDIO_UART UART_1
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -33,6 +33,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -33,6 +33,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -33,6 +33,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -43,6 +43,7 @@ typedef enum {
UART_10 = (int)UART10_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -43,6 +43,7 @@ typedef enum {
UART_10 = (int)UART10_BASE
} UARTName;
#define DEVICE_SPI_COUNT 5
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -54,6 +54,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -58,6 +58,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -60,6 +60,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -60,6 +60,7 @@ typedef enum {
DMA_2 = (int)DMA2_BASE
} DMAName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
UART_6 = (int)USART6_BASE
} UARTName;
#define DEVICE_SPI_COUNT 4
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -58,6 +58,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -59,6 +59,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -58,6 +58,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 6
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -45,6 +45,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE,
} SPIName;

View File

@ -45,6 +45,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 1
typedef enum {
SPI_1 = (int)SPI1_BASE,
} SPIName;

View File

@ -52,6 +52,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -50,6 +50,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -50,6 +50,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -50,6 +50,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -54,6 +54,7 @@ typedef enum {
#define STDIO_UART_RX PA_3
#define STDIO_UART UART_2
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
UART_3 = (int)USART3_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE

View File

@ -52,6 +52,7 @@ typedef enum {
UART_5 = (int)UART5_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -67,6 +67,7 @@ typedef enum {
#define STDIO_UART UART_2
#endif
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -54,6 +54,7 @@ typedef enum {
#define STDIO_UART_RX PA_3
#define STDIO_UART UART_2
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -59,6 +59,7 @@ typedef enum {
#define STDIO_UART_RX PB_7
#define STDIO_UART UART_1
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -50,6 +50,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_3 = (int)SPI3_BASE

View File

@ -51,6 +51,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -51,6 +51,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -57,6 +57,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -59,6 +59,7 @@ typedef enum {
#define STDIO_UART_RX PD_2
#define STDIO_UART UART_5
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -55,6 +55,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -53,6 +53,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,

View File

@ -32,6 +32,7 @@ typedef enum {
LPUART_1 = (int)LPUART1_BASE
} UARTName;
#define DEVICE_SPI_COUNT 2
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE