From 8b1f2ef33c5eb42705df4542b81c8d935f4d2b17 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Mon, 20 Apr 2015 08:32:30 +0100 Subject: [PATCH] Reset I2C with HAPI call instead of register access --- platform/srf06-cc26xx/sensortag/board-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/srf06-cc26xx/sensortag/board-i2c.c b/platform/srf06-cc26xx/sensortag/board-i2c.c index da17c4139..509f2707e 100644 --- a/platform/srf06-cc26xx/sensortag/board-i2c.c +++ b/platform/srf06-cc26xx/sensortag/board-i2c.c @@ -80,7 +80,7 @@ board_i2c_wakeup() while(!ti_lib_prcm_load_get()); /* 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 */ ti_lib_i2c_master_init_exp_clk(I2C0_BASE,