Skip to content

Commit 9d3e34e

Browse files
committed
[NUCLEO_F303RE] fix build error
1 parent c8d08bd commit 9d3e34e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ typedef enum {
6262
typedef enum {
6363
SPI_1 = (int)SPI1_BASE,
6464
SPI_2 = (int)SPI2_BASE,
65-
SPI_3 = (int)SPI3_BASE
65+
SPI_3 = (int)SPI3_BASE,
66+
SPI_4 = (int)SPI4_BASE
6667
} SPIName;
6768

6869
typedef enum {
@@ -79,7 +80,8 @@ typedef enum {
7980
PWM_8 = (int)TIM8_BASE,
8081
PWM_15 = (int)TIM15_BASE,
8182
PWM_16 = (int)TIM16_BASE,
82-
PWM_17 = (int)TIM17_BASE
83+
PWM_17 = (int)TIM17_BASE,
84+
PWM_20 = (int)TIM20_BASE
8385
} PWMName;
8486

8587
typedef enum {

hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ typedef enum {
4040
PortC = 2,
4141
PortD = 3,
4242
PortE = 4,
43-
PortF = 5
43+
PortF = 5,
44+
PortG = 6,
45+
PortH = 7
4446
} PortName;
4547

4648
#ifdef __cplusplus

0 commit comments

Comments
 (0)