Skip to content

Commit 9ac335a

Browse files
committed
[NUCLEO_L152RE] Typo corrections
1 parent daefeed commit 9ac335a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ typedef enum {
143143
LED3 = PA_5,
144144
LED4 = PA_5,
145145
USER_BUTTON = PC_13,
146+
SERIAL_TX = PA_2,
147+
SERIAL_RX = PA_3,
146148
USBTX = PA_2,
147149
USBRX = PA_3,
148150
I2C_SCL = PB_8,

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
#define DEVICE_SERIAL 1
4343

4444
#define DEVICE_I2C 1
45-
#define DEVICE_I2CSLAVE 0
45+
#define DEVICE_I2CSLAVE 0 // Not yet supported
4646

4747
#define DEVICE_SPI 1
48-
#define DEVICE_SPISLAVE 0
48+
#define DEVICE_SPISLAVE 0 // Not yet supported
4949

5050
#define DEVICE_RTC 1
5151

@@ -63,7 +63,7 @@
6363

6464
#define DEVICE_STDIO_MESSAGES 1
6565

66-
//#define DEVICE_ERROR_RED 0
66+
#define DEVICE_ERROR_RED 0
6767

6868
#include "objects.h"
6969

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ void pin_function(PinName pin, int data) {
9595
GPIO_InitStructure.GPIO_PuPd = (GPIOPuPd_TypeDef)pupd;
9696
GPIO_Init(gpio, &GPIO_InitStructure);
9797

98-
// *** TODO ***
99-
// Disconnect JTAG-DP + SW-DP signals.
98+
// [TODO] Disconnect JTAG-DP + SW-DP signals.
10099
// Warning: Need to reconnect under reset
101100
//if ((pin == PA_13) || (pin == PA_14)) {
102101
//

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void rtc_init(void) {
4949

5050
RTC_WaitForSynchro(); // Wait for RTC registers synchronization
5151

52-
uint32_t lsi_freq = 40000; // *** TODO** To be measured precisely using a timer input capture
52+
uint32_t lsi_freq = 40000; // [TODO] To be measured precisely using a timer input capture
5353

5454
RTC_InitTypeDef RTC_InitStructure;
5555
RTC_InitStructure.RTC_AsynchPrediv = 127;

0 commit comments

Comments
 (0)