[NUCLEO_F303RE] fix build error

pull/2548/head
Michel Jaouen 2016-07-07 17:31:22 +02:00
parent c8d08bd952
commit 9d3e34e387
2 changed files with 7 additions and 3 deletions

View File

@ -62,7 +62,8 @@ typedef enum {
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
} SPIName; } SPIName;
typedef enum { typedef enum {
@ -79,7 +80,8 @@ typedef enum {
PWM_8 = (int)TIM8_BASE, PWM_8 = (int)TIM8_BASE,
PWM_15 = (int)TIM15_BASE, PWM_15 = (int)TIM15_BASE,
PWM_16 = (int)TIM16_BASE, PWM_16 = (int)TIM16_BASE,
PWM_17 = (int)TIM17_BASE PWM_17 = (int)TIM17_BASE,
PWM_20 = (int)TIM20_BASE
} PWMName; } PWMName;
typedef enum { typedef enum {

View File

@ -40,7 +40,9 @@ typedef enum {
PortC = 2, PortC = 2,
PortD = 3, PortD = 3,
PortE = 4, PortE = 4,
PortF = 5 PortF = 5,
PortG = 6,
PortH = 7
} PortName; } PortName;
#ifdef __cplusplus #ifdef __cplusplus