Skip to content

Commit be141ac

Browse files
committed
Merge pull request #244 from bcostm/master
[NUCLEO_xxx] Various bugs correction
2 parents f7c0e77 + b703555 commit be141ac

File tree

9 files changed

+15
-6
lines changed

9 files changed

+15
-6
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ typedef enum {
148148
LED3 = PA_5,
149149
LED4 = PA_5,
150150
USER_BUTTON = PC_13,
151+
SERIAL_TX = PA_2,
152+
SERIAL_RX = PA_3,
151153
USBTX = PA_2,
152154
USBRX = PA_3,
153155
I2C_SCL = PB_8,

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*******************************************************************************
2929
*/
3030
#include "pinmap.h"
31+
#include "PortNames.h"
3132
#include "error.h"
3233

3334
// Enable GPIO clock and return GPIO base address

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ typedef enum {
138138
LED3 = PA_5,
139139
LED4 = PA_5,
140140
USER_BUTTON = PC_13,
141+
SERIAL_TX = PA_2,
142+
SERIAL_RX = PA_3,
141143
USBTX = PA_2,
142144
USBRX = PA_3,
143145
I2C_SCL = PB_8,

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*******************************************************************************
2929
*/
3030
#include "pinmap.h"
31+
#include "PortNames.h"
3132
#include "error.h"
3233

3334
// Alternate-function mapping

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/PinNames.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ typedef enum {
131131
D8 = PA_9,
132132
D9 = PC_7,
133133
D10 = PB_6,
134-
D11 = PA_7,
135-
D12 = PA_6,
136-
D13 = PA_5,
134+
D11 = PB_15,
135+
D12 = PB_14,
136+
D13 = PB_13,
137137
D14 = PB_9,
138138
D15 = PB_8,
139139

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*******************************************************************************
2929
*/
3030
#include "pinmap.h"
31+
#include "PortNames.h"
3132
#include "error.h"
3233

3334
// Enable GPIO clock and return GPIO base address

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*******************************************************************************
2929
*/
3030
#include "pinmap.h"
31+
#include "PortNames.h"
3132
#include "error.h"
3233
#include "stm32f4xx_hal.h"
3334

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/pwmout_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static const PinMap PinMap_PWM[] = {
7777
{PC_6, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH1
7878
{PC_7, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH2
7979
{PC_8, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH3
80-
{PC_9, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH3
80+
{PC_9, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH4
8181

8282
{NC, NC, 0}
8383
};
@@ -189,7 +189,6 @@ void pwmout_write(pwmout_t* obj, float value) {
189189
case PB_8:
190190
case PB_10:
191191
case PC_8:
192-
case PC_9:
193192
channel = TIM_CHANNEL_3;
194193
break;
195194
// Channels 3N
@@ -202,7 +201,8 @@ void pwmout_write(pwmout_t* obj, float value) {
202201
//case PA_3:
203202
case PA_11:
204203
//case PB_1:
205-
case PB_9:
204+
case PB_9:
205+
case PC_9:
206206
channel = TIM_CHANNEL_4;
207207
break;
208208
default:

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*******************************************************************************
2929
*/
3030
#include "pinmap.h"
31+
#include "PortNames.h"
3132
#include "error.h"
3233

3334
// Enable GPIO clock and return GPIO base address

0 commit comments

Comments
 (0)