summaryrefslogtreecommitdiff
path: root/board/oak
diff options
context:
space:
mode:
Diffstat (limited to 'board/oak')
-rw-r--r--board/oak/board.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/board/oak/board.c b/board/oak/board.c
index e8eba6d45b..0275981446 100644
--- a/board/oak/board.c
+++ b/board/oak/board.c
@@ -97,8 +97,20 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {"battery", I2C_PORT_BATTERY, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA},
- {"pd", I2C_PORT_PD_MCU, 1000, GPIO_I2C1_SCL, GPIO_I2C1_SDA}
+ {
+ .name = "battery",
+ .port = I2C_PORT_BATTERY,
+ .kbps = 100,
+ .scl = GPIO_I2C0_SCL,
+ .sda = GPIO_I2C0_SDA
+ },
+ {
+ .name = "pd",
+ .port = I2C_PORT_PD_MCU,
+ .kbps = 1000,
+ .scl = GPIO_I2C1_SCL,
+ .sda = GPIO_I2C1_SDA
+ }
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);