Skip to content

Commit e604321

Browse files
author
Jamie Smith
authored
Fix NUCLEO_L452RE_P arduino pins (#335)
1 parent 975e6b2 commit e604321

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

hal/include/hal/i2c_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ int i2c_slave_write(i2c_t *obj, const char *data, int length);
338338
/** Configure I2C address.
339339
* @param obj The I2C object
340340
* @param idx Currently not used
341-
* @param address The address to be set
341+
* @param address The address to be set (8-bit, always a read address)
342342
* @param mask Currently not used
343343
*/
344344
void i2c_slave_address(i2c_t *obj, int idx, uint32_t address, uint32_t mask);

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L452xE/TARGET_NUCLEO_L452RE_P/PinNames.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ typedef enum {
120120
ARDUINO_UNO_A4 = PC_1,
121121
ARDUINO_UNO_A5 = PC_0,
122122

123-
ARDUINO_UNO_D0 = PA_3,
124-
ARDUINO_UNO_D1 = PA_2,
125-
ARDUINO_UNO_D2 = PA_10,
123+
ARDUINO_UNO_D0 = PA_10,
124+
ARDUINO_UNO_D1 = PA_9,
125+
ARDUINO_UNO_D2 = PA_12,
126126
ARDUINO_UNO_D3 = PB_3,
127127
ARDUINO_UNO_D4 = PB_5,
128128
ARDUINO_UNO_D5 = PA_15,

targets/targets.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,6 +4313,10 @@
43134313
"detect_code": [
43144314
"0829"
43154315
],
4316+
"overrides": {
4317+
// ADC vref on this board is connected to 3.3V VDD
4318+
"default-adc-vref": 3.3
4319+
},
43164320
"device_name": "STM32L452RETx",
43174321
"image_url": "https://mm.digikey.com/Volume0/opasdata/d220001/medias/images/2508/MFG_NUCLEO-L433RC-P.jpg"
43184322
},

0 commit comments

Comments
 (0)