LPC17xx DAC fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4521 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-03-25 16:22:07 +00:00
parent ee7d6789b7
commit a6b222bc85
4 changed files with 103 additions and 100 deletions

View File

@ -271,7 +271,7 @@ static int adc_interrupt(int irq, void *context)
*
****************************************************************************/
FAR struct adc_dev_s *stm32_adcinitialize(void)
FAR struct adc_dev_s *lpc17_adcinitialize(void)
{
return &g_adcdev;
}

View File

@ -67,7 +67,7 @@
/* Bits 0-5: Reserved */
#define DAC_CR_VALUE_SHIFT (6) /* Bits 6-15: Controls voltage on the AOUT pin */
#define DAC_CR_VALUE_MASK (0x3ff << DAC_CR_VALUE_SHIFT)
#define DAC_CR_BIAS (1 << 16) /* Bit 16: Controls DAC settling time
#define DAC_CR_BIAS (1 << 16) /* Bit 16: Controls DAC settling time */
/* Bits 17-31: Reserved */
/* DAC Control register */

View File

@ -808,7 +808,7 @@ EXTERN void lpc17_dmadump(DMA_HANDLE handle, const struct lpc17_dmaregs_s *regs,
****************************************************************************/
#ifdef CONFIG_LPC17_ADC
FAR struct adc_dev_s *stm32_adcinitialize(void);
FAR struct adc_dev_s *lpc17_adcinitialize(void);
#endif
/****************************************************************************

View File

@ -188,7 +188,10 @@ nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
# This is part of the top-level export target
export_head:
export_head: board/libboard$(LIBEXT) up_head.o $(HOSTOBJS)
cp up_head.o $(HOSTOBJS) ${EXPORT_DIR}/startup
cp nuttx-names.dat ${EXPORT_DIR}/libs
echo main NXmain >> ${EXPORT_DIR}/libs/nuttx-names.dat
# Dependencies