summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:16:01 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-25 04:16:01 +0100
commit9a836f1dbf90f07c2fc4151166f7456879d675b0 (patch)
treebc7eec0850c1249c32465b41607a293c50eed44e /arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c
parentfcef19baed9cb5b040a3df0505e57710df20ee43 (diff)
Making the compiler a bitch by enabling warnings in full, fixing a few warnings, and making the board actually do slightly something.
Diffstat (limited to 'arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c')
-rw-r--r--arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c b/arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c
index 9b54228..c130ce1 100644
--- a/arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c
+++ b/arch/arm/lpc17xx/Drivers/source/lpc17xx_i2c.c
@@ -211,7 +211,7 @@ static uint32_t I2C_GetByte (LPC_I2C_TypeDef *I2Cx, uint8_t *retdat, Bool ack)
***********************************************************************/
static void I2C_SetClock (LPC_I2C_TypeDef *I2Cx, uint32_t target_clock)
{
- uint32_t temp;
+ uint32_t temp = 0;
CHECK_PARAM(PARAM_I2Cx(I2Cx));
@@ -985,7 +985,7 @@ Status I2C_SlaveTransferData(LPC_I2C_TypeDef *I2Cx, I2C_S_SETUP_Type *TransferCf
{
uint8_t *txdat;
uint8_t *rxdat;
- uint32_t CodeStatus;
+ uint32_t CodeStatus = 0;
uint32_t timeout;
int32_t time_en;
int32_t tmp;