Skip to content

Commit 924af94

Browse files
authored
Merge pull request #10841 from VVESTM/vve_10827_spi_count
TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference
2 parents 68c3dc6 + 31eb49b commit 924af94

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

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/TARGET_NUCLEO_F302R8/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_2 = (int)SPI2_BASE,
5556
SPI_3 = (int)SPI3_BASE

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/PeripheralNames.h

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

55+
#define DEVICE_SPI_COUNT 1
5556
typedef enum {
5657
SPI_1 = (int)SPI1_BASE
5758
} SPIName;

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TARGET_DISCO_F303VC/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/PeripheralNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ typedef enum {
5555
UART_5 = (int)UART5_BASE
5656
} UARTName;
5757

58+
#define DEVICE_SPI_COUNT 4
5859
typedef enum {
5960
SPI_1 = (int)SPI1_BASE,
6061
SPI_2 = (int)SPI2_BASE,
6162
SPI_3 = (int)SPI3_BASE,
6263
SPI_4 = (int)SPI4_BASE
63-
6464
} SPIName;
6565

6666
typedef enum {

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TARGET_DISCO_F334C8/PeripheralNames.h

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

55+
#define DEVICE_SPI_COUNT 1
5556
typedef enum {
5657
SPI_1 = (int)SPI1_BASE
5758
} SPIName;

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TARGET_NUCLEO_F334R8/PeripheralNames.h

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

55+
#define DEVICE_SPI_COUNT 1
5556
typedef enum {
5657
SPI_1 = (int)SPI1_BASE
5758
} SPIName;

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
#define STDIO_UART_RX PB_7
5151
#define STDIO_UART UART_1
5252

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ typedef enum {
6060
#define STDIO_UART_RX PA_3
6161
#define STDIO_UART UART_2
6262

63+
#define DEVICE_SPI_COUNT 3
6364
typedef enum {
6465
SPI_1 = (int)SPI1_BASE,
6566
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
#define STDIO_UART_RX PA_10
5151
#define STDIO_UART UART_1
5252

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_STEVAL_3DP001V1/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xE/TARGET_ARCH_MAX/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ typedef enum {
5858
UART_6 = (int)USART6_BASE,
5959
} UARTName;
6060

61+
#define DEVICE_SPI_COUNT 3
6162
typedef enum {
6263
SPI_1 = (int)SPI1_BASE,
6364
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_DISCO_F407VG/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ typedef enum {
5656
UART_6 = (int)USART6_BASE,
5757
} UARTName;
5858

59+
#define DEVICE_SPI_COUNT 3
5960
typedef enum {
6061
SPI_1 = (int)SPI1_BASE,
6162
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F410xB/TARGET_NUCLEO_F410RB/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_ELMO_F411RE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_SAKURAIO_EVB_01/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef enum {
5050
#define STDIO_UART_RX PB_7
5151
#define STDIO_UART UART_1
5252

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_MTB_MXCHIP_EMW3166/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ typedef enum {
3333
UART_6 = (int)USART6_BASE
3434
} UARTName;
3535

36+
#define DEVICE_SPI_COUNT 5
3637
typedef enum {
3738
SPI_1 = (int)SPI1_BASE,
3839
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ typedef enum {
3333
UART_6 = (int)USART6_BASE
3434
} UARTName;
3535

36+
#define DEVICE_SPI_COUNT 5
3637
typedef enum {
3738
SPI_1 = (int)SPI1_BASE,
3839
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_USI_WM_BN_BM_22/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ typedef enum {
3333
UART_6 = (int)USART6_BASE
3434
} UARTName;
3535

36+
#define DEVICE_SPI_COUNT 5
3637
typedef enum {
3738
SPI_1 = (int)SPI1_BASE,
3839
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ typedef enum {
4343
UART_10 = (int)UART10_BASE
4444
} UARTName;
4545

46+
#define DEVICE_SPI_COUNT 5
4647
typedef enum {
4748
SPI_1 = (int)SPI1_BASE,
4849
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_NUCLEO_F413ZH/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ typedef enum {
4343
UART_10 = (int)UART10_BASE
4444
} UARTName;
4545

46+
#define DEVICE_SPI_COUNT 5
4647
typedef enum {
4748
SPI_1 = (int)SPI1_BASE,
4849
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_DISCO_F429ZI/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/TARGET_UBLOX_C030/PeripheralNames.h

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

57+
#define DEVICE_SPI_COUNT 6
5758
typedef enum {
5859
SPI_1 = (int)SPI1_BASE,
5960
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MTB_STM32_F439/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ typedef enum {
5858
UART_8 = (int)UART8_BASE
5959
} UARTName;
6060

61+
#define DEVICE_SPI_COUNT 6
6162
typedef enum {
6263
SPI_1 = (int)SPI1_BASE,
6364
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_3G/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_BG96/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ typedef enum {
6060
UART_8 = (int)UART8_BASE
6161
} UARTName;
6262

63+
#define DEVICE_SPI_COUNT 6
6364
typedef enum {
6465
SPI_1 = (int)SPI1_BASE,
6566
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_B96B_F446VE/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ typedef enum {
6060
DMA_2 = (int)DMA2_BASE
6161
} DMAName;
6262

63+
#define DEVICE_SPI_COUNT 4
6364
typedef enum {
6465
SPI_1 = (int)SPI1_BASE,
6566
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446ZE/PeripheralNames.h

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

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

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/TARGET_DISCO_F469NI/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/TARGET_SDP_K1/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ typedef enum {
5858
UART_8 = (int)UART8_BASE
5959
} UARTName;
6060

61+
#define DEVICE_SPI_COUNT 6
6162
typedef enum {
6263
SPI_1 = (int)SPI1_BASE,
6364
SPI_2 = (int)SPI2_BASE,

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/PeripheralNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757
UART_8 = (int)UART8_BASE
5858
} UARTName;
5959

60+
#define DEVICE_SPI_COUNT 6
6061
typedef enum {
6162
SPI_1 = (int)SPI1_BASE,
6263
SPI_2 = (int)SPI2_BASE,

0 commit comments

Comments
 (0)