File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ typedef enum {
143
143
LED3 = PA_5 ,
144
144
LED4 = PA_5 ,
145
145
USER_BUTTON = PC_13 ,
146
+ SERIAL_TX = PA_2 ,
147
+ SERIAL_RX = PA_3 ,
146
148
USBTX = PA_2 ,
147
149
USBRX = PA_3 ,
148
150
I2C_SCL = PB_8 ,
Original file line number Diff line number Diff line change 42
42
#define DEVICE_SERIAL 1
43
43
44
44
#define DEVICE_I2C 1
45
- #define DEVICE_I2CSLAVE 0
45
+ #define DEVICE_I2CSLAVE 0 // Not yet supported
46
46
47
47
#define DEVICE_SPI 1
48
- #define DEVICE_SPISLAVE 0
48
+ #define DEVICE_SPISLAVE 0 // Not yet supported
49
49
50
50
#define DEVICE_RTC 1
51
51
63
63
64
64
#define DEVICE_STDIO_MESSAGES 1
65
65
66
- // #define DEVICE_ERROR_RED 0
66
+ #define DEVICE_ERROR_RED 0
67
67
68
68
#include "objects.h"
69
69
Original file line number Diff line number Diff line change @@ -95,8 +95,7 @@ void pin_function(PinName pin, int data) {
95
95
GPIO_InitStructure .GPIO_PuPd = (GPIOPuPd_TypeDef )pupd ;
96
96
GPIO_Init (gpio , & GPIO_InitStructure );
97
97
98
- // *** TODO ***
99
- // Disconnect JTAG-DP + SW-DP signals.
98
+ // [TODO] Disconnect JTAG-DP + SW-DP signals.
100
99
// Warning: Need to reconnect under reset
101
100
//if ((pin == PA_13) || (pin == PA_14)) {
102
101
//
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ void rtc_init(void) {
49
49
50
50
RTC_WaitForSynchro (); // Wait for RTC registers synchronization
51
51
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
53
53
54
54
RTC_InitTypeDef RTC_InitStructure ;
55
55
RTC_InitStructure .RTC_AsynchPrediv = 127 ;
You can’t perform that action at this time.
0 commit comments