diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:16:01 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:16:01 +0100 |
commit | 9a836f1dbf90f07c2fc4151166f7456879d675b0 (patch) | |
tree | bc7eec0850c1249c32465b41607a293c50eed44e /arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c | |
parent | fcef19baed9cb5b040a3df0505e57710df20ee43 (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_ssp.c')
-rw-r--r-- | arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c b/arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c index bbf03a6..7d6bb1d 100644 --- a/arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c +++ b/arch/arm/lpc17xx/Drivers/source/lpc17xx_ssp.c @@ -339,10 +339,10 @@ uint16_t SSP_ReceiveData(LPC_SSP_TypeDef* SSPx) int32_t SSP_ReadWrite (LPC_SSP_TypeDef *SSPx, SSP_DATA_SETUP_Type *dataCfg, \
SSP_TRANSFER_Type xfType)
{
- uint8_t *rdata8;
- uint8_t *wdata8;
- uint16_t *rdata16;
- uint16_t *wdata16;
+ uint8_t *rdata8 = 0;
+ uint8_t *wdata8 = 0;
+ uint16_t *rdata16 = 0;
+ uint16_t *wdata16 = 0;
uint32_t stat;
uint32_t tmp;
int32_t dataword;
|