mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
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:
@@ -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;
|
return &g_adcdev;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
/* Bits 0-5: Reserved */
|
/* Bits 0-5: Reserved */
|
||||||
#define DAC_CR_VALUE_SHIFT (6) /* Bits 6-15: Controls voltage on the AOUT pin */
|
#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_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 */
|
/* Bits 17-31: Reserved */
|
||||||
/* DAC Control register */
|
/* DAC Control register */
|
||||||
|
|
||||||
|
|||||||
@@ -808,7 +808,7 @@ EXTERN void lpc17_dmadump(DMA_HANDLE handle, const struct lpc17_dmaregs_s *regs,
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LPC17_ADC
|
#ifdef CONFIG_LPC17_ADC
|
||||||
FAR struct adc_dev_s *stm32_adcinitialize(void);
|
FAR struct adc_dev_s *lpc17_adcinitialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -188,7 +188,10 @@ nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
|
|||||||
|
|
||||||
# This is part of the top-level export target
|
# 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
|
# Dependencies
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user