File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
boards/arm/stm32l4/nucleo-l432kc Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 126
126
* but are normally-high GPIOs.
127
127
*/
128
128
129
- #define GPIO_I2C1_D4 \
130
- (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTB | GPIO_PIN7 )
131
- #define GPIO_I2C1_D5 \
132
- (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTB | GPIO_PIN6)
129
+ #define GPIO_I2C1_A4 \
130
+ (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTA | GPIO_PIN5 )
131
+ #define GPIO_I2C1_A5 \
132
+ (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTA | GPIO_PIN6)
133
133
#define GPIO_I2C1_SCL \
134
134
(GPIO_I2C1_SCL_1 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
135
135
#define GPIO_I2C1_SDA \
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ int stm32_ina226initialize(const char *devpath)
80
80
81
81
sninfo ("Initializing INA226\n" );
82
82
83
- /* Configure D4 (PA5) and D5 (PA6) as input floating */
83
+ /* Configure A4 (PA5) and A5 (PA6) as input floating */
84
84
85
- stm32l4_configgpio (GPIO_I2C1_D4 );
86
- stm32l4_configgpio (GPIO_I2C1_D5 );
85
+ stm32l4_configgpio (GPIO_I2C1_A4 );
86
+ stm32l4_configgpio (GPIO_I2C1_A5 );
87
87
88
88
/* Get an instance of the I2C1 interface */
89
89
You can’t perform that action at this time.
0 commit comments