forked from Imagelibrary/rtems
2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/lpc24xx.h: Added ADC defines. * make/custom/lpc24xx.inc: Workaround for GCC bug 49641.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* include/lpc24xx.h: Added ADC defines.
|
||||
* make/custom/lpc24xx.inc: Workaround for GCC bug 49641.
|
||||
|
||||
2011-06-19 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Fix broken path to cache_.h.
|
||||
|
||||
@@ -1962,6 +1962,24 @@ typedef struct {
|
||||
|
||||
static volatile lpc_i2s *const lpc24xx_i2s = (lpc_i2s *) I2S_BASE_ADDR;
|
||||
|
||||
/* ADC */
|
||||
|
||||
#define ADC_CR_SEL(val) BSP_FLD32(val, 0, 7)
|
||||
#define ADC_CR_SEL_GET(val) BSP_FLD32GET(val, 0, 7)
|
||||
#define ADC_CR_SEL_SET(reg, val) BSP_FLD32SET(reg, val, 0, 7)
|
||||
#define ADC_CR_CLKDIV(val) BSP_FLD32(val, 8, 15)
|
||||
#define ADC_CR_CLKDIV_GET(reg) BSP_FLD32GET(reg, 8, 15)
|
||||
#define ADC_CR_CLKDIV_SET(reg, val) BSP_FLD32SET(reg, val, 8, 15)
|
||||
#define ADC_CR_BURST BSP_BIT32(16)
|
||||
#define ADC_CR_CLKS(val) BSP_FLD32(val, 17, 19)
|
||||
#define ADC_CR_PDN BSP_BIT32(21)
|
||||
#define ADC_CR_START(val) BSP_FLD32(val, 24, 26)
|
||||
#define ADC_CR_EDGE BSP_BIT32(27)
|
||||
|
||||
#define ADC_DR_VALUE(reg) BSP_FLD32GET(reg, 6, 15)
|
||||
#define ADC_DR_OVERRUN BSP_BIT32(30)
|
||||
#define ADC_DR_DONE BSP_BIT32(31)
|
||||
|
||||
/* DAC */
|
||||
|
||||
#define DAC_STEPS 1024
|
||||
|
||||
@@ -9,6 +9,6 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
RTEMS_CPU = arm
|
||||
|
||||
CPU_CFLAGS = -mstructure-size-boundary=8 -mcpu=arm7tdmi-s -mfpu=vfp -mfloat-abi=soft -mthumb \
|
||||
-fno-schedule-insns2
|
||||
-fno-schedule-insns2 -fno-peephole2
|
||||
|
||||
CFLAGS_OPTIMIZE_V = -Os -g
|
||||
|
||||
Reference in New Issue
Block a user