Skip to content

Commit

Permalink
at32: add PA0/PA1 as i2c pins (betaflight#13187)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner authored Dec 3, 2023
1 parent 5769b30 commit 32ccc84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/drivers/at32/bus_i2c_atbsp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ const i2cHardware_t i2cHardware[I2CDEV_COUNT] = {
.device = I2CDEV_2,
.reg = I2C2,
.sclPins = {
I2CPINDEF(PA0, GPIO_MUX_4),
I2CPINDEF(PB10, GPIO_MUX_4),
I2CPINDEF(PD12, GPIO_MUX_4),
I2CPINDEF(PH2, GPIO_MUX_4),
I2CPINDEF(PH2, GPIO_MUX_4),
},
.sdaPins = {
I2CPINDEF(PB3, GPIO_MUX_4),
I2CPINDEF(PA1, GPIO_MUX_4),
I2CPINDEF(PB3, GPIO_MUX_4),
I2CPINDEF(PB11, GPIO_MUX_4),
I2CPINDEF(PH3,GPIO_MUX_4),
I2CPINDEF(PH3, GPIO_MUX_4),
},
.rcc = RCC_APB1(I2C2),
.ev_irq = I2C2_EVT_IRQn,
Expand Down

0 comments on commit 32ccc84

Please sign in to comment.