From 9d3e34e387d0e57fd22ed94e3e8e95ed2090deb3 Mon Sep 17 00:00:00 2001 From: Michel Jaouen Date: Thu, 7 Jul 2016 17:31:22 +0200 Subject: [PATCH] [NUCLEO_F303RE] fix build error --- .../TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h | 6 ++++-- .../TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h index 1b2dd8f02d..ff95fc7be8 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h @@ -62,7 +62,8 @@ typedef enum { typedef enum { SPI_1 = (int)SPI1_BASE, SPI_2 = (int)SPI2_BASE, - SPI_3 = (int)SPI3_BASE + SPI_3 = (int)SPI3_BASE, + SPI_4 = (int)SPI4_BASE } SPIName; typedef enum { @@ -79,7 +80,8 @@ typedef enum { PWM_8 = (int)TIM8_BASE, PWM_15 = (int)TIM15_BASE, PWM_16 = (int)TIM16_BASE, - PWM_17 = (int)TIM17_BASE + PWM_17 = (int)TIM17_BASE, + PWM_20 = (int)TIM20_BASE } PWMName; typedef enum { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h index 026326171c..0d25c87513 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h @@ -40,7 +40,9 @@ typedef enum { PortC = 2, PortD = 3, PortE = 4, - PortF = 5 + PortF = 5, + PortG = 6, + PortH = 7 } PortName; #ifdef __cplusplus