TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference

Extend to all STM targets the work done on PR10752.

Signed-off-by: Vincent Veron <vincent.veron@st.com>
pull/10841/head
Vincent Veron 2019-06-14 14:15:56 +02:00
parent 5a8f795976
commit 31eb49b918
82 changed files with 82 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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