diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-05 22:35:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-05 22:35:07 +0000 |
commit | 07ba2fa8d09cba4b1745b5c4fd2c58bd7ca551ec (patch) | |
tree | c9b98c567c1cae44e6887a75c60463a746a63560 /nuttx/arch/arm/src/lpc214x/chip.h | |
parent | 6c26b5b9d87864d5eab31924a300dadfa3056f26 (diff) | |
download | px4-nuttx-07ba2fa8d09cba4b1745b5c4fd2c58bd7ca551ec.tar.gz px4-nuttx-07ba2fa8d09cba4b1745b5c4fd2c58bd7ca551ec.tar.bz2 px4-nuttx-07ba2fa8d09cba4b1745b5c4fd2c58bd7ca551ec.zip |
Add logic for system timer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@204 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc214x/chip.h')
-rw-r--r-- | nuttx/arch/arm/src/lpc214x/chip.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/chip.h b/nuttx/arch/arm/src/lpc214x/chip.h index 51ae83708..56089cf1d 100644 --- a/nuttx/arch/arm/src/lpc214x/chip.h +++ b/nuttx/arch/arm/src/lpc214x/chip.h @@ -92,44 +92,44 @@ #define LPC214X_WD_FEED_OFFSET 0x08 /* Watchdog Feed Register */ #define LPC214X_WD_TV_OFFSET 0x0C /* Watchdog Time Value Register */ -/* Timer 0 register offsets */ - -#define LPC214X_TMR_IR_OFFSET 0x00 /* Interrupt Register */ -#define LPC214X_TMR_TCR_OFFSET 0x04 /* Timer Control Register */ -#define LPC214X_TMR_TC_OFFSET 0x08 /* Timer Counter */ -#define LPC214X_TMR_PR_OFFSET 0x0c /* Prescale Register */ -#define LPC214X_TMR_PC_OFFSET 0x10 /* Prescale Counter Register */ -#define LPC214X_TMR_MCR_OFFSET 0x14 /* Match Control Register */ -#define LPC214X_TMR_MR0_OFFSET 0x18 /* Match Register 0 */ -#define LPC214X_TMR_MR1_OFFSET 0x1c /* Match Register 1 */ -#define LPC214X_TMR_MR2_OFFSET 0x20 /* Match Register 2 */ -#define LPC214X_TMR_MR3_OFFSET 0x24 /* Match Register 3 */ -#define LPC214X_TMR_CCR_OFFSET 0x28 /* Capture Control Register */ -#define LPC214X_TMR_CR0_OFFSET 0x2c /* Capture Register 0 */ -#define LPC214X_TMR_CR1_OFFSET 0x30 /* Capture Register 1 */ -#define LPC214X_TMR_CR2_OFFSET 0x34 /* Capture Register 2 */ -#define LPC214X_TMR_CR3_OFFSET 0x38 /* Capture Register 3 */ -#define LPC214X_TMR_EMR_OFFSET 0x3c /* External Match Register */ - -#define LPC214X_TMR_CTCR_OFFSET 0x70 /* Count Control Register */ +/* Timer 0/1 register offsets */ + +#define LPC214X_TMR_IR_OFFSET 0x00 /* RW:Interrupt Register */ +#define LPC214X_TMR_TCR_OFFSET 0x04 /* RW: Timer Control Register */ +#define LPC214X_TMR_TC_OFFSET 0x08 /* RW: Timer Counter */ +#define LPC214X_TMR_PR_OFFSET 0x0c /* RW: Prescale Register */ +#define LPC214X_TMR_PC_OFFSET 0x10 /* RW: Prescale Counter Register */ +#define LPC214X_TMR_MCR_OFFSET 0x14 /* RW: Match Control Register */ +#define LPC214X_TMR_MR0_OFFSET 0x18 /* RW: Match Register 0 */ +#define LPC214X_TMR_MR1_OFFSET 0x1c /* RW: Match Register 1 */ +#define LPC214X_TMR_MR2_OFFSET 0x20 /* RW: Match Register 2 */ +#define LPC214X_TMR_MR3_OFFSET 0x24 /* RW: Match Register 3 */ +#define LPC214X_TMR_CCR_OFFSET 0x28 /* RW: Capture Control Register */ +#define LPC214X_TMR_CR0_OFFSET 0x2c /* R: Capture Register 0 */ +#define LPC214X_TMR_CR1_OFFSET 0x30 /* R: Capture Register 1 */ +#define LPC214X_TMR_CR2_OFFSET 0x34 /* R: Capture Register 2 */ +#define LPC214X_TMR_CR3_OFFSET 0x38 /* RW: Capture Register 3 */ +#define LPC214X_TMR_EMR_OFFSET 0x3c /* RW: External Match Register */ + +#define LPC214X_TMR_CTCR_OFFSET 0x70 /* RW: Count Control Register */ /* UART0/1 Register Offsets */ #define LPC214X_UART_RBR_OFFSET 0x00 /* R: Receive Buffer Register (DLAB=0) */ #define LPC214X_UART_THR_OFFSET 0x00 /* W: Transmit Holding Register (DLAB=0) */ -#define LPC214X_UART_DLL_OFFSET 0x00 /* W: Divisor Latch Register (LSB) */ +#define LPC214X_UART_DLL_OFFSET 0x00 /* W: Divisor Latch Register (LSB, DLAB=1) */ #define LPC214X_UART_IER_OFFSET 0x04 /* W: Interrupt Enable Register (DLAB=0) */ -#define LPC214X_UART_DLM_OFFSET 0x04 /* R/W: Divisor Latch Register (MSB, DLAB=1) */ -#define LPC214X_UART_IIR_OFFSET 0x08 /* R: Interrupt ID Register (DLAB=) */ +#define LPC214X_UART_DLM_OFFSET 0x04 /* RW: Divisor Latch Register (MSB, DLAB=1) */ +#define LPC214X_UART_IIR_OFFSET 0x08 /* R: Interrupt ID Register */ #define LPC214X_UART_FCR_OFFSET 0x08 /* W: FIFO Control Register */ -#define LPC214X_UART_LCR_OFFSET 0x0c /* R/W: Line Control Register */ -#define LPC214X_UART_MCR_OFFSET 0x10 /* R/W: Modem Control REgister (2146/6/8 UART1 Only) */ +#define LPC214X_UART_LCR_OFFSET 0x0c /* RW: Line Control Register */ +#define LPC214X_UART_MCR_OFFSET 0x10 /* RW: Modem Control REgister (2146/6/8 UART1 Only) */ #define LPC214X_UART_LSR_OFFSET 0x14 /* R: Scratch Pad Register */ -#define LPC214X_UART_MSR_OFFSET 0x18 /* R/W: MODEM Status Register (2146/6/8 UART1 Only) */ -#define LPC214X_UART_SCR_OFFSET 0x1c /* R/W: Line Status Register */ -#define LPC214X_UART_ACR_OFFSET 0x20 /* R/W: Autobaud Control Register */ -#define LPC214X_UART_FDR_OFFSET 0x28 /* R/W: Fractional Divider Register */ -#define LPC214X_UART_TER_OFFSET 0x30 /* R/W: Transmit Enable Register */ +#define LPC214X_UART_MSR_OFFSET 0x18 /* RW: MODEM Status Register (2146/6/8 UART1 Only) */ +#define LPC214X_UART_SCR_OFFSET 0x1c /* RW: Line Status Register */ +#define LPC214X_UART_ACR_OFFSET 0x20 /* RW: Autobaud Control Register */ +#define LPC214X_UART_FDR_OFFSET 0x28 /* RW: Fractional Divider Register */ +#define LPC214X_UART_TER_OFFSET 0x30 /* RW: Transmit Enable Register */ /* PWM register offsets */ |