LPC43xx: Fix some errors/warnings in ADC driver

This commit is contained in:
Gregory Nutt 2016-01-15 13:37:12 -06:00
parent 6c2cd3edee
commit 027e5ef1a1
2 changed files with 9 additions and 9 deletions

View File

@ -82,14 +82,14 @@
****************************************************************************/
#ifndef CONFIG_ADC0_MASK
#define CONFIG_ADC0_MASK 0x01
# define CONFIG_ADC0_MASK 0x01
#endif
#ifndef CONFIG_ADC0_FREQ
#define CONFIG_ADC0_FREQ 0
# define CONFIG_ADC0_FREQ 0
#endif
#define LPC43_ADC_MAX_FREQUENCY 4500000
#define LPC43_ADC_MIN_FREQUENCY(BOARD_ABP3_FREQUENCY/256)
#define LPC43_ADC_MAX_FREQUENCY 4500000
#define LPC43_ADC_MIN_FREQUENCY (BOARD_ABP3_FREQUENCY/256)
#if defined(CONFIG_ADC0_USE_TIMER) && CONFIG_ADC0_FREQ == 0
# error "Set CONFIG_ADC0_FREQ != 0 if CONFIG_ADC0_USE_TIMER"

View File

@ -565,15 +565,15 @@ static void ssp_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
FAR struct lpc43_sspdev_s *priv = (FAR struct lpc43_sspdev_s *)dev;
union
{
FAR uint8_t *p8;
FAR uint16_t *p16;
FAR void *pv;
FAR const uint8_t *p8;
FAR const uint16_t *p16;
FAR const void *pv;
} tx;
union
{
FAR uint8_t *p8;
FAR uint8_t *p8;
FAR uint16_t *p16;
FAR void *pv;
FAR void *pv;
} rx;
uint32_t data;
uint32_t datadummy = (priv->nbits > 8) ? 0xffff : 0xff;