Skip to content

Commit 31eb49b

Browse files
committed
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 <[email protected]>
1 parent 5a8f795 commit 31eb49b

File tree

82 files changed

+82
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+82
-1
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
UART_2 = (int)USART2_BASE
5151
} UARTName;
5252

53+
#define DEVICE_SPI_COUNT 2
5354
typedef enum {
5455
SPI_1 = (int)SPI1_BASE,
5556
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef enum {
4646
UART_2 = (int)USART2_BASE
4747
} UARTName;
4848

49+
#define DEVICE_SPI_COUNT 2
4950
typedef enum {
5051
SPI_1 = (int)SPI1_BASE,
5152
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef enum {
4444
UART_1 = (int)USART1_BASE
4545
} UARTName;
4646

47+
#define DEVICE_SPI_COUNT 1
4748
typedef enum {
4849
SPI_1 = (int)SPI1_BASE
4950
} SPIName;

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef enum {
4646
UART_2 = (int)USART2_BASE
4747
} UARTName;
4848

49+
#define DEVICE_SPI_COUNT 2
4950
typedef enum {
5051
SPI_1 = (int)SPI1_BASE,
5152
SPI_2 = (int)SPI2_BASE // for compilation

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef enum {
4747
UART_4 = (int)USART4_BASE
4848
} UARTName;
4949

50+
#define DEVICE_SPI_COUNT 2
5051
typedef enum {
5152
SPI_1 = (int)SPI1_BASE,
5253
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ typedef enum {
5151
UART_4 = (int)USART4_BASE
5252
} UARTName;
5353

54+
#define DEVICE_SPI_COUNT 2
5455
typedef enum {
5556
SPI_1 = (int)SPI1_BASE,
5657
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ typedef enum {
5555
UART_8 = (int)USART8_BASE
5656
} UARTName;
5757

58+
#define DEVICE_SPI_COUNT 2
5859
typedef enum {
5960
SPI_1 = (int)SPI1_BASE,
6061
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef enum {
4646
UART_3 = (int)USART3_BASE
4747
} UARTName;
4848

49+
#define DEVICE_SPI_COUNT 2
4950
typedef enum {
5051
SPI_1 = (int)SPI1_BASE,
5152
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
UART_3 = (int)USART3_BASE
5151
} UARTName;
5252

53+
#define DEVICE_SPI_COUNT 2
5354
typedef enum {
5455
SPI_1 = (int)SPI1_BASE,
5556
SPI_2 = (int)SPI2_BASE

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef enum {
4646
UART_3 = (int)USART3_BASE
4747
} UARTName;
4848

49+
#define DEVICE_SPI_COUNT 2
4950
typedef enum {
5051
SPI_1 = (int)SPI1_BASE,
5152
SPI_2 = (int)SPI2_BASE

0 commit comments

Comments
 (0)