From a9c0768fd601893608e765eb12a2b0a7ac6fa008 Mon Sep 17 00:00:00 2001 From: Maria Laura Stefanizzi Date: Wed, 20 Nov 2013 14:05:15 +0100 Subject: [PATCH] Integrate I2C driver into board initializzation This patch add I2C initializzation for board with I2C devices. Signed-off-by: Maria Laura Stefanizzi --- platform/mbxxx/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/mbxxx/board.c b/platform/mbxxx/board.c index 277a377c5..651d33f8f 100644 --- a/platform/mbxxx/board.c +++ b/platform/mbxxx/board.c @@ -77,6 +77,7 @@ #include "hal/micro/cortexm3/mfg-token.h" #endif #include +#include "dev/i2c.h" const LedResourceType LedsMB851A[] = { { @@ -496,6 +497,7 @@ void halBoardPowerUp(void) if ((boardDescription->flags & BOARD_HAS_MEMS) || (boardDescription->flags & BOARD_HAS_EEPROM)) { halGpioConfig(PORTA_PIN(1), GPIOCFG_OUT_ALT_OD); halGpioConfig(PORTA_PIN(2), GPIOCFG_OUT_ALT_OD); + i2c_enable(); } /* Configure GPIO for ADC access (temp sensor) */ if (boardDescription->flags & BOARD_HAS_TEMP_SENSOR) {