mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
5a8f795976
commit
31eb49b918
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue