mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-16 22:28:59 +00:00
Reset I2C with HAPI call instead of register access
This commit is contained in:
parent
8673bbdd55
commit
8b1f2ef33c
@ -80,7 +80,7 @@ board_i2c_wakeup()
|
|||||||
while(!ti_lib_prcm_load_get());
|
while(!ti_lib_prcm_load_get());
|
||||||
|
|
||||||
/* Reset the I2C controller */
|
/* Reset the I2C controller */
|
||||||
HWREG(PRCM_BASE + PRCM_O_RESETI2C) = PRCM_RESETI2C_I2C;
|
ti_lib_hapi_reset_peripheral(PRCM_PERIPH_I2C0);
|
||||||
|
|
||||||
/* Enable and initialize the I2C master module */
|
/* Enable and initialize the I2C master module */
|
||||||
ti_lib_i2c_master_init_exp_clk(I2C0_BASE,
|
ti_lib_i2c_master_init_exp_clk(I2C0_BASE,
|
||||||
|
Loading…
Reference in New Issue
Block a user