summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-12-03 09:56:48 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-12-03 09:56:48 +0000
commitdd853a397350c0eecf3b47871c18b9a33a759cde (patch)
tree4d8c45debc9b73efa2efaa5013e85375149125c4 /c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h
parent2010-12-03 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-dd853a397350c0eecf3b47871c18b9a33a759cde.tar.bz2
2010-12-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/lcd.h, misc/lcd.c: New files. * misc/io.c, include/io.h: Documentation, bug fixes, more configurations. * include/lpc24xx.h: Added DAC and I2S. * Makefile.am, bsp_specs, preinstall.am, startup/bspstarthooks.c, startup/linkcmds.lpc2362, startup/linkcmds.lpc23xx_tli800, startup/linkcmds.lpc24xx_ea, startup/linkcmds.lpc24xx_ncs_ram, startup/linkcmds.lpc24xx_ncs_rom_ext, startup/linkcmds.lpc24xx_ncs_rom_int: Update due to linker command file changes.
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h')
-rw-r--r--c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h b/c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h
index 8fddb3f8f8..fa92d28315 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h
+++ b/c/src/lib/libbsp/arm/lpc24xx/include/lpc24xx.h
@@ -22,6 +22,8 @@
#define LIBBSP_ARM_LPC24XX_LPC24XX_H
#include <stdint.h>
+#include <bsp/utility.h>
+#include <bsp/lpc-i2s.h>
/**
* @defgroup lpc24xx_regs Register Definitions
@@ -1980,6 +1982,16 @@ typedef struct {
#define PCONP_ETHERNET (1U << 30)
#define PCONP_USB (1U << 31)
+/* I2S */
+
+static volatile lpc_i2s *const lpc24xx_i2s = (lpc_i2s *) I2S_BASE_ADDR;
+
+/* DAC */
+
+#define DAC_STEPS 1024
+#define DAC_VALUE(val) BSP_FLD32(val, 6, 15)
+#define DAC_BIAS BSP_BIT32(16)
+
/** @} */
#endif /* LIBBSP_ARM_LPC24XX_LPC24XX_H */