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_spi.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_spi.c')
-rw-r--r-- | arch/arm/lpc17xx/Drivers/source/lpc17xx_spi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/lpc17xx/Drivers/source/lpc17xx_spi.c b/arch/arm/lpc17xx/Drivers/source/lpc17xx_spi.c index 7643de7..77a0e51 100644 --- a/arch/arm/lpc17xx/Drivers/source/lpc17xx_spi.c +++ b/arch/arm/lpc17xx/Drivers/source/lpc17xx_spi.c @@ -215,11 +215,11 @@ uint16_t SPI_ReceiveData(LPC_SPI_TypeDef* SPIx) int32_t SPI_ReadWrite (LPC_SPI_TypeDef *SPIx, SPI_DATA_SETUP_Type *dataCfg, \
SPI_TRANSFER_Type xfType)
{
- uint8_t *rdata8;
- uint8_t *wdata8;
- uint16_t *rdata16;
- uint16_t *wdata16;
- uint32_t stat;
+ uint8_t *rdata8 = NULL;
+ uint8_t *wdata8 = NULL;
+ uint16_t *rdata16 = NULL;
+ uint16_t *wdata16 = NULL;
+ uint32_t stat = 0;
uint32_t temp;
uint8_t dataword;
|