Skip to content

Commit 279c1dc

Browse files
Jiyun-Yanggmarull
authored andcommitted
fw/boards/board_getafix: configure getafix_dvt lis2dw12 iic address
Signed-off-by: Yang Jiyun <yangjiyun@pro-well.tech>
1 parent 3a9e1f7 commit 279c1dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fw/board/boards/board_getafix.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,11 @@ IRQ_MAP(I2C1, i2c_irq_handler, I2C1_BUS);
274274

275275
static const I2CSlavePort s_i2c_lsm2dw12 = {
276276
.bus = &s_i2c_bus_1,
277+
#if BOARD_GETAFIX_EVT
277278
.address = 0x18,
279+
#else
280+
.address = 0x19,
281+
#endif
278282
};
279283

280284
I2CSlavePort *const I2C_LSM2DW12 = &s_i2c_lsm2dw12;

0 commit comments

Comments
 (0)