Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
#include "lpcWD.h"
#include "lpcTMR.h"
#include "lpcUART.h"
#include "lpcI2C.h"
#include "lpcSPI.h"
#include "lpcRTC.h"
#include "lpcGPIO.h"
#include "lpcPIN.h"
#include "lpcADC.h"
#include "lpcSCB.h"
#include "lpcVIC.h"
#include "lpcCAN.h"
Go to the source code of this file.
Macros | |
#define | REG_8 volatile unsigned char |
#define | REG16 volatile unsigned short |
#define | REG32 volatile unsigned long |
#define | WD ((wdRegs_t *)0xE0000000) |
#define | WDMOD WD->mod /* Watchdog Mode Register */ |
#define | WDTC WD->tc /* Watchdog Time Constant Register */ |
#define | WDFEED WD->feed /* Watchdog Feed Register */ |
#define | WDTV WD->tv /* Watchdog Time Value Register */ |
#define | TMR0 ((pwmTmrRegs_t *)0xE0004000) |
#define | T0IR TMR0->ir /* Interrupt Register */ |
#define | T0TCR TMR0->tcr /* Timer Control Register */ |
#define | T0TC TMR0->tc /* Timer Counter */ |
#define | T0PR TMR0->pr /* Prescale Register */ |
#define | T0PC TMR0->pc /* Prescale Counter Register */ |
#define | T0MCR TMR0->mcr /* Match Control Register */ |
#define | T0MR0 TMR0->mr0 /* Match Register 0 */ |
#define | T0MR1 TMR0->mr1 /* Match Register 1 */ |
#define | T0MR2 TMR0->mr2 /* Match Register 2 */ |
#define | T0MR3 TMR0->mr3 /* Match Register 3 */ |
#define | T0CCR TMR0->ccr /* Capture Control Register */ |
#define | T0CR0 TMR0->cr0 /* Capture Register 0 */ |
#define | T0CR1 TMR0->cr1 /* Capture Register 1 */ |
#define | T0CR2 TMR0->cr2 /* Capture Register 2 */ |
#define | T0CR3 TMR0->cr3 /* Capture Register 3 */ |
#define | T0EMR TMR0->emr /* External Match Register */ |
#define | TMR1 ((pwmTmrRegs_t *)0xE0008000) |
#define | T1IR TMR1->ir /* Interrupt Register */ |
#define | T1TCR TMR1->tcr /* Timer Control Register */ |
#define | T1TC TMR1->tc /* Timer Counter */ |
#define | T1PR TMR1->pr /* Prescale Register */ |
#define | T1PC TMR1->pc /* Prescale Counter Register */ |
#define | T1MCR TMR1->mcr /* Match Control Register */ |
#define | T1MR0 TMR1->mr0 /* Match Register 0 */ |
#define | T1MR1 TMR1->mr1 /* Match Register 1 */ |
#define | T1MR2 TMR1->mr2 /* Match Register 2 */ |
#define | T1MR3 TMR1->mr3 /* Match Register 3 */ |
#define | T1CCR TMR1->ccr /* Capture Control Register */ |
#define | T1CR0 TMR1->cr0 /* Capture Register 0 */ |
#define | T1CR1 TMR1->cr1 /* Capture Register 1 */ |
#define | T1CR2 TMR1->cr2 /* Capture Register 2 */ |
#define | T1CR3 TMR1->cr3 /* Capture Register 3 */ |
#define | T1EMR TMR1->emr /* External Match Register */ |
#define | PWM ((pwmTmrRegs_t *)0xE0014000) |
#define | PWMIR PWM->ir /* Interrupt Register */ |
#define | PWMTCR PWM->tcr /* Timer Control Register */ |
#define | PWMTC PWM->tc /* Timer Counter */ |
#define | PWMPR PWM->pr /* Prescale Register */ |
#define | PWMPC PWM->pc /* Prescale Counter Register */ |
#define | PWMMCR PWM->mcr /* Match Control Register */ |
#define | PWMMR0 PWM->mr0 /* Match Register 0 */ |
#define | PWMMR1 PWM->mr1 /* Match Register 1 */ |
#define | PWMMR2 PWM->mr2 /* Match Register 2 */ |
#define | PWMMR3 PWM->mr3 /* Match Register 3 */ |
#define | PWMMR4 PWM->mr4 /* Match Register 4 */ |
#define | PWMMR5 PWM->mr5 /* Match Register 5 */ |
#define | PWMMR6 PWM->mr6 /* Match Register 6 */ |
#define | PWMPCR PWM->pcr /* Control Register */ |
#define | PWMLER PWM->ler /* Latch Enable Register */ |
#define | UART0_BASE ((uartRegs_t *)0xE000C000) |
#define | U0_PINSEL (0x00000005) /* PINSEL0 Value for UART0 */ |
#define | U0_PINMASK (0x0000000F) /* PINSEL0 Mask for UART0 */ |
#define | U0_PINSEL_RX (0x00000004) /* PINSEL0 Value for UART0 RX only */ |
#define | U0_PINMASK_RX (0x0000000C) /* PINSEL0 Mask for UART0 RX only */ |
#define | U0RBR UART0_BASE->rbr /* Receive Buffer Register */ |
#define | U0THR UART0_BASE->thr /* Transmit Holding Register */ |
#define | U0IER UART0_BASE->ier /* Interrupt Enable Register */ |
#define | U0IIR UART0_BASE->iir /* Interrupt ID Register */ |
#define | U0FCR UART0_BASE->fcr /* FIFO Control Register */ |
#define | U0LCR UART0_BASE->lcr /* Line Control Register */ |
#define | U0LSR UART0_BASE->lsr /* Line Status Register */ |
#define | U0SCR UART0_BASE->scr /* Scratch Pad Register */ |
#define | U0DLL UART0_BASE->dll /* Divisor Latch Register (LSB) */ |
#define | U0DLM UART0_BASE->dlm /* Divisor Latch Register (MSB) */ |
#define | UART1_BASE ((uartRegs_t *)0xE0010000) |
#define | U1_PINSEL (0x00050000) /* PINSEL0 Value for UART1 */ |
#define | U1_PINMASK (0x000F0000) /* PINSEL0 Mask for UART1 */ |
#define | U1_PINSEL_RX (0x00040000) /* PINSEL0 Value for UART1 RX only */ |
#define | U1_PINMASK_RX (0x000C0000) /* PINSEL0 Mask for UART1 RX only */ |
#define | U1RBR UART1_BASE->rbr /* Receive Buffer Register */ |
#define | U1THR UART1_BASE->thr /* Transmit Holding Register */ |
#define | U1IER UART1_BASE->ier /* Interrupt Enable Register */ |
#define | U1IIR UART1_BASE->iir /* Interrupt ID Register */ |
#define | U1FCR UART1_BASE->fcr /* FIFO Control Register */ |
#define | U1LCR UART1_BASE->lcr /* Line Control Register */ |
#define | U1MCR UART1_BASE->mcr /* MODEM Control Register */ |
#define | U1LSR UART1_BASE->lsr /* Line Status Register */ |
#define | U1MSR UART1_BASE->msr /* MODEM Status Register */ |
#define | U1SCR UART1_BASE->scr /* Scratch Pad Register */ |
#define | U1DLL UART1_BASE->dll /* Divisor Latch Register (LSB) */ |
#define | U1DLM UART1_BASE->dlm /* Divisor Latch Register (MSB) */ |
#define | I2C0 ((i2cRegs_t *)0xE001C000) |
#define | I2C0CONSET I2C0->conset /* Control Set Register */ |
#define | I2C0STAT I2C0->stat /* Status Register */ |
#define | I2C0DAT I2C0->dat /* Data Register */ |
#define | I2C0ADR I2C0->adr /* Slave Address Register */ |
#define | I2C0SCLH I2C0->sclh /* SCL Duty Cycle Register (high half word) */ |
#define | I2C0SCLL I2C0->scll /* SCL Duty Cycle Register (low half word) */ |
#define | I2C0CONCLR I2C0->conclr /* Control Clear Register */ |
#define | I2C1 ((i2cRegs_t *)0xE005C000) |
#define | I2C1CONSET I2C1->conset /* Control Set Register */ |
#define | I2C1STAT I2C1->stat /* Status Register */ |
#define | I2C1DAT I2C1->dat /* Data Register */ |
#define | I2C1ADR I2C1->adr /* Slave Address Register */ |
#define | I2C1SCLH I2C1->sclh /* SCL Duty Cycle Register (high half word) */ |
#define | I2C1SCLL I2C1->scll /* SCL Duty Cycle Register (low half word) */ |
#define | I2C1CONCLR I2C1->conclr /* Control Clear Register */ |
#define | AA 2 |
#define | SI 3 |
#define | STO 4 |
#define | STA 5 |
#define | I2EN 6 |
#define | AAC 2 |
#define | SIC 3 |
#define | STAC 5 |
#define | I2ENC 6 |
#define | SPI0 ((spiRegs_t *)0xE0020000) |
#define | S0SPCR SPI0->cr /* Control Register */ |
#define | S0SPSR SPI0->sr /* Status Register */ |
#define | S0SPDR SPI0->dr /* Data Register */ |
#define | S0SPCCR SPI0->ccr /* Clock Counter Register */ |
#define | S0SPINT SPI0->flag /* Interrupt Flag Register */ |
#define | SPI0IF 0 |
#define | SPI1 ((sspRegs_t *)0xE0068000) |
#define | SPI1IF 0 |
#define | SSPCR0 SPI1->cr0 /* Control Register 0 */ |
#define | SSPCR1 SPI1->cr1 /* Control Register 1 */ |
#define | SSPDR SPI1->dr /* Data register */ |
#define | SSPSR SPI1->sr /* Status register */ |
#define | SSPCPSR SPI1->cpsr /* Clock prescale register */ |
#define | SSPIMSC SPI1->imsc /* Interrupt mask register */ |
#define | SSPRIS SPI1->ris /* Raw interrupt status register */ |
#define | SSPMIS SPI1->mis /* Masked interrupt status register */ |
#define | SSPICR SPI1->icr /* Interrupt clear register */ |
#define | DSS 0 |
#define | FRF 4 |
#define | CPOL 6 |
#define | CPHA 7 |
#define | SCR 8 |
#define | DSS_VAL4 0x3 |
#define | DSS_VAL5 0x4 |
#define | DSS_VAL6 0x5 |
#define | DSS_VAL7 0x6 |
#define | DSS_VAL8 0x7 |
#define | DSS_VAL9 0x8 |
#define | DSS_VAL10 0x9 |
#define | DSS_VAL11 0xA |
#define | DSS_VAL12 0xB |
#define | DSS_VAL13 0XC |
#define | DSS_VAL14 0xD |
#define | DSS_VAL15 0xE |
#define | DSS_VAL16 0xF |
#define | LBM 0 |
#define | SSE 1 |
#define | MS 2 |
#define | SOD 3 |
#define | RORIM 0 |
#define | RTIM 1 |
#define | RXIM 2 |
#define | TXIM 3 |
#define | TFE 0 |
#define | TNF 1 |
#define | RNE 2 |
#define | RFF 3 |
#define | BSY 4 |
#define | RORMIS 0 |
#define | RTMIS 1 |
#define | RXMIS 2 |
#define | TXMIS 3 |
#define | RORIC 0 |
#define | RTIC 1 |
#define | RTC ((rtcRegs_t *)0xE0024000) |
#define | RTCILR RTC->ilr /* Interrupt Location Register */ |
#define | RTCCTC RTC->ctc /* Clock Tick Counter */ |
#define | RTCCCR RTC->ccr /* Clock Control Register */ |
#define | RTCCIIR RTC->ciir /* Counter Increment Interrupt Register */ |
#define | RTCAMR RTC->amr /* Alarm Mask Register */ |
#define | RTCCTIME0 RTC->ctime0 /* Consolidated Time Register 0 */ |
#define | RTCCTIME1 RTC->ctime1 /* Consolidated Time Register 1 */ |
#define | RTCCTIME2 RTC->ctime2 /* Consolidated Time Register 2 */ |
#define | RTCSEC RTC->sec /* Seconds Register */ |
#define | RTCMIN RTC->min /* Minutes Register */ |
#define | RTCHOUR RTC->hour /* Hours Register */ |
#define | RTCDOM RTC->dom /* Day Of Month Register */ |
#define | RTCDOW RTC->dow /* Day Of Week Register */ |
#define | RTCDOY RTC->doy /* Day Of Year Register */ |
#define | RTCMONTH RTC->month /* Months Register */ |
#define | RTCYEAR RTC->year /* Years Register */ |
#define | RTCALSEC RTC->alsec /* Alarm Seconds Register */ |
#define | RTCALMIN RTC->almin /* Alarm Minutes Register */ |
#define | RTCALHOUR RTC->alhour /* Alarm Hours Register */ |
#define | RTCALDOM RTC->aldom /* Alarm Day Of Month Register */ |
#define | RTCALDOW RTC->aldow /* Alarm Day Of Week Register */ |
#define | RTCALDOY RTC->aldoy /* Alarm Day Of Year Register */ |
#define | RTCALMON RTC->almon /* Alarm Months Register */ |
#define | RTCALYEAR RTC->alyear /* Alarm Years Register */ |
#define | RTCPREINT RTC->preint /* Prescale Value Register (integer) */ |
#define | RTCPREFRAC RTC->prefrac /* Prescale Value Register (fraction) */ |
#define | GPIO ((gpioRegs_t *)0xE0028000) |
#define | IO0PIN GPIO->in0 /* P0 Pin Value Register */ |
#define | IO0SET GPIO->set0 /* P0 Pin Output Set Register */ |
#define | IO0DIR GPIO->dir0 /* P0 Pin Direction Register */ |
#define | IO0CLR GPIO->clr0 /* P0 Pin Output Clear Register */ |
#define | IO1PIN GPIO->in1 /* P1 Pin Value Register */ |
#define | IO1SET GPIO->set1 /* P1 Pin Output Set Register */ |
#define | IO1DIR GPIO->dir1 /* P1 Pin Direction Register */ |
#define | IO1CLR GPIO->clr1 /* P1 Pin Output Clear Register */ |
#define | PINSEL ((pinRegs_t *)0xE002C000) |
#define | PINSEL0 PINSEL->sel0 /* Pin Function Select Register 0 */ |
#define | PINSEL1 PINSEL->sel1 /* Pin Function Select Register 1 */ |
#define | PINSEL2 PINSEL->sel2 /* Pin Function Select Register 2 */ |
#define | ADC0 ((adcRegs_t *)0xE0034000) |
#define | AD0CR ADC0->cr /* Control Register */ |
#define | AD0GDR ADC0->gdr /* Global Data Register */ |
#define | ADGSR ADC0->gsr /* ADC global start resister */ |
#define | AD0INTEN ADC0->inten /* Interrupt Enable Register */ |
#define | AD0DR0 ADC0->dr0 /* Channel 0 Data Register */ |
#define | AD0DR1 ADC0->dr1 /* Channel 1 Data Register */ |
#define | AD0DR2 ADC0->dr2 /* Channel 2 Data Register */ |
#define | AD0DR3 ADC0->dr3 /* Channel 3 Data Register */ |
#define | AD0DR4 ADC0->dr4 /* Channel 4 Data Register */ |
#define | AD0DR5 ADC0->dr5 /* Channel 5 Data Register */ |
#define | AD0DR6 ADC0->dr6 /* Channel 6 Data Register */ |
#define | AD0DR7 ADC0->dr7 /* Channel 7 Data Register */ |
#define | AD0STAT ADC0->stat /* Status Register */ |
#define | ADC1 ((adcRegs_t *)0xE0060000) |
#define | AD1CR ADC1->cr /* Control Register */ |
#define | AD1GDR ADC1->gdr /* Data Register */ |
#define | AD1INTEN ADC1->inten /* Interrupt Enable Register */ |
#define | AD1DR0 ADC1->dr0 /* Channel 0 Data Register */ |
#define | AD1DR1 ADC1->dr1 /* Channel 1 Data Register */ |
#define | AD1DR2 ADC1->dr2 /* Channel 2 Data Register */ |
#define | AD1DR3 ADC1->dr3 /* Channel 3 Data Register */ |
#define | AD1DR4 ADC1->dr4 /* Channel 4 Data Register */ |
#define | AD1DR5 ADC1->dr5 /* Channel 5 Data Register */ |
#define | AD1DR6 ADC1->dr6 /* Channel 6 Data Register */ |
#define | AD1DR7 ADC1->dr7 /* Channel 7 Data Register */ |
#define | AD1STAT ADC1->stat /* Status Register */ |
#define | DACR (*(REG32*) 0xE006C000) |
#define | SCB ((scbRegs_t *)0xE01FC000) |
#define | MAMCR SCB->mam.cr /* Control Register */ |
#define | MAMTIM SCB->mam.tim /* Timing Control Register */ |
#define | MEMMAP SCB->memmap |
#define | PLLCON SCB->pll.con /* Control Register */ |
#define | PLLCFG SCB->pll.cfg /* Configuration Register */ |
#define | PLLSTAT SCB->pll.stat /* Status Register */ |
#define | PLLFEED SCB->pll.feed /* Feed Register */ |
#define | PCON SCB->p.con /* Control Register */ |
#define | PCONP SCB->p.conp /* Peripherals Register */ |
#define | VPBDIV SCB->vpbdiv |
#define | EXTINT SCB->ext.flag /* Flag Register */ |
#define | EXTWAKE SCB->ext.wake /* Wakeup Register */ |
#define | EXTMODE SCB->ext.mode /* Mode Register */ |
#define | EXTPOLAR SCB->ext.polar /* Polarity Register */ |
#define | VIC ((vicRegs_t *)0xFFFFF000) |
#define | VICIRQStatus VIC->irqStatus /* IRQ Status Register */ |
#define | VICFIQStatus VIC->fiqStatus /* FIQ Status Register */ |
#define | VICRawIntr VIC->rawIntr /* Raw Interrupt Status Register */ |
#define | VICIntSelect VIC->intSelect /* Interrupt Select Register */ |
#define | VICIntEnable VIC->intEnable /* Interrupt Enable Register */ |
#define | VICIntEnClear VIC->intEnClear /* Interrupt Enable Clear Register */ |
#define | VICSoftInt VIC->softInt /* Software Interrupt Register */ |
#define | VICSoftIntClear VIC->softIntClear /* Software Interrupt Clear Register */ |
#define | VICProtection VIC->protection /* Protection Enable Register */ |
#define | VICVectAddr VIC->vectAddr /* Vector Address Register */ |
#define | VICDefVectAddr VIC->defVectAddr /* Default Vector Address Register */ |
#define | VICVectAddr0 VIC->vectAddr0 /* Vector Address 0 Register */ |
#define | VICVectAddr1 VIC->vectAddr1 /* Vector Address 1 Register */ |
#define | VICVectAddr2 VIC->vectAddr2 /* Vector Address 2 Register */ |
#define | VICVectAddr3 VIC->vectAddr3 /* Vector Address 3 Register */ |
#define | VICVectAddr4 VIC->vectAddr4 /* Vector Address 4 Register */ |
#define | VICVectAddr5 VIC->vectAddr5 /* Vector Address 5 Register */ |
#define | VICVectAddr6 VIC->vectAddr6 /* Vector Address 6 Register */ |
#define | VICVectAddr7 VIC->vectAddr7 /* Vector Address 7 Register */ |
#define | VICVectAddr8 VIC->vectAddr8 /* Vector Address 8 Register */ |
#define | VICVectAddr9 VIC->vectAddr9 /* Vector Address 9 Register */ |
#define | VICVectAddr10 VIC->vectAddr10 /* Vector Address 10 Register */ |
#define | VICVectAddr11 VIC->vectAddr11 /* Vector Address 11 Register */ |
#define | VICVectAddr12 VIC->vectAddr12 /* Vector Address 12 Register */ |
#define | VICVectAddr13 VIC->vectAddr13 /* Vector Address 13 Register */ |
#define | VICVectAddr14 VIC->vectAddr14 /* Vector Address 14 Register */ |
#define | VICVectAddr15 VIC->vectAddr15 /* Vector Address 15 Register */ |
#define | VICVectCntl0 VIC->vectCntl0 /* Vector Control 0 Register */ |
#define | VICVectCntl1 VIC->vectCntl1 /* Vector Control 1 Register */ |
#define | VICVectCntl2 VIC->vectCntl2 /* Vector Control 2 Register */ |
#define | VICVectCntl3 VIC->vectCntl3 /* Vector Control 3 Register */ |
#define | VICVectCntl4 VIC->vectCntl4 /* Vector Control 4 Register */ |
#define | VICVectCntl5 VIC->vectCntl5 /* Vector Control 5 Register */ |
#define | VICVectCntl6 VIC->vectCntl6 /* Vector Control 6 Register */ |
#define | VICVectCntl7 VIC->vectCntl7 /* Vector Control 7 Register */ |
#define | VICVectCntl8 VIC->vectCntl8 /* Vector Control 8 Register */ |
#define | VICVectCntl9 VIC->vectCntl9 /* Vector Control 9 Register */ |
#define | VICVectCntl10 VIC->vectCntl10 /* Vector Control 10 Register */ |
#define | VICVectCntl11 VIC->vectCntl11 /* Vector Control 11 Register */ |
#define | VICVectCntl12 VIC->vectCntl12 /* Vector Control 12 Register */ |
#define | VICVectCntl13 VIC->vectCntl13 /* Vector Control 13 Register */ |
#define | VICVectCntl14 VIC->vectCntl14 /* Vector Control 14 Register */ |
#define | VICVectCntl15 VIC->vectCntl15 /* Vector Control 15 Register */ |
#define | CAN_CENTRAL ((can_central_Regs_t *)0xE0040000) |
#define | CANTxSR CAN_CENTRAL->tx_sr /* CAN Central Transmit Status Register */ |
#define | CANRxSR CAN_CENTRAL->rx_sr /* CAN Central Receive Status Register */ |
#define | CANMSR CAN_CENTRAL->m_sr /* CAN Central Miscellanous Register */ |
#define | CAN_ACCEPT ((can_accept_Regs_t *)0xE003C000) |
#define | AFMR CAN_ACCEPT->afmr /* Acceptance Filter Register */ |
#define | CAN1 ((can_Regs_t *)0xE0044000) |
#define | C1MOD CAN1->can_mod /* */ |
#define | C1CMR CAN1->can_cmr /* */ |
#define | C1GSR CAN1->can_gsr /* */ |
#define | C1ICR CAN1->can_icr |
#define | C1IER CAN1->can_ier |
#define | C1BTR CAN1->can_btr |
#define | C1EWL CAN1->can_ewl |
#define | C1SR CAN1->can_sr |
#define | C1RFS CAN1->can_rfs |
#define | C1RID CAN1->can_rid |
#define | C1RDA CAN1->can_rda |
#define | C1RDB CAN1->can_rdb |
#define | C1TFI1 CAN1->can_tfi1 |
#define | C1TID1 CAN1->can_tid1 |
#define | C1TDA1 CAN1->can_tda1 |
#define | C1TDB1 CAN1->can_tdb1 |
#define | C1TFI2 CAN1->can_tfi2 |
#define | C1TID2 CAN1->can_tid2 |
#define | C1TDA2 CAN1->can_tda2 |
#define | C1TDB2 CAN1->can_tdb2 |
#define | C1TFI3 CAN1->can_tfi3 |
#define | C1TID3 CAN1->can_tid3 |
#define | C1TDA3 CAN1->can_tda3 |
#define | C1TDB3 CAN1->can_tdb3 |
#define | CAN2 ((can_Regs_t *)0xE0048000) |
#define | C2MOD CAN2->can_mod /* */ |
#define | C2CMR CAN2->can_cmr /* */ |
#define | C2GSR CAN2->can_gsr /* */ |
#define | C2ICR CAN2->can_icr |
#define | C2IER CAN2->can_ier |
#define | C2BTR CAN2->can_btr |
#define | C2EWL CAN2->can_ewl |
#define | C2SR CAN2->can_sr |
#define | C2RFS CAN2->can_rfs |
#define | C2RID CAN2->can_rid |
#define | C2RDA CAN2->can_rda |
#define | C2RDB CAN2->can_rdb |
#define | C2TFI1 CAN2->can_tfi1 |
#define | C2TID1 CAN2->can_tid1 |
#define | C2TDA1 CAN2->can_tda1 |
#define | C2TDB1 CAN2->can_tdb1 |
#define | C2TFI2 CAN2->can_tfi2 |
#define | C2TID2 CAN2->can_tid2 |
#define | C2TDA2 CAN2->can_tda2 |
#define | C2TDB2 CAN2->can_tdb2 |
#define | C2TFI3 CAN2->can_tfi3 |
#define | C2TID3 CAN2->can_tid3 |
#define | C2TDA3 CAN2->can_tda3 |
#define | C2TDB3 CAN2->can_tdb3 |
#define AA 2 |
Definition at line 179 of file LPC21xx.h.
Referenced by fit_linear_flow_field(), fit_linear_model(), fit_linear_model_prior(), I2cReceive(), and I2cSendAck().
#define AAC 2 |
Definition at line 187 of file LPC21xx.h.
Referenced by I2cReceive().
#define AD0CR ADC0->cr /* Control Register */ |
Definition at line 356 of file LPC21xx.h.
Referenced by adc_init().
#define AD0GDR ADC0->gdr /* Global Data Register */ |
#define AD0INTEN ADC0->inten /* Interrupt Enable Register */ |
#define AD1CR ADC1->cr /* Control Register */ |
Definition at line 373 of file LPC21xx.h.
Referenced by adc_init().
#define AD1GDR ADC1->gdr /* Data Register */ |
#define AD1INTEN ADC1->inten /* Interrupt Enable Register */ |
#define ADC1 ((adcRegs_t *)0xE0060000) |
Definition at line 370 of file LPC21xx.h.
Referenced by adc_init().
#define AFMR CAN_ACCEPT->afmr /* Acceptance Filter Register */ |
#define BSY 4 |
Definition at line 281 of file LPC21xx.h.
Referenced by SpiAutomaton().
#define CAN1 ((can_Regs_t *)0xE0044000) |
Definition at line 484 of file LPC21xx.h.
Referenced by can_hw_init(), and can_hw_transmit().
#define CAN2 ((can_Regs_t *)0xE0048000) |
#define CAN_ACCEPT ((can_accept_Regs_t *)0xE003C000) |
#define CAN_CENTRAL ((can_central_Regs_t *)0xE0040000) |
#define CANMSR CAN_CENTRAL->m_sr /* CAN Central Miscellanous Register */ |
#define CANRxSR CAN_CENTRAL->rx_sr /* CAN Central Receive Status Register */ |
#define CANTxSR CAN_CENTRAL->tx_sr /* CAN Central Transmit Status Register */ |
#define CPHA 7 |
Definition at line 246 of file LPC21xx.h.
Referenced by SpiClearCPHA(), and SpiSetCPHA().
#define CPOL 6 |
Definition at line 245 of file LPC21xx.h.
Referenced by SpiClearCPOL().
#define DACR (*(REG32*) 0xE006C000) |
#define DSS 0 |
Definition at line 243 of file LPC21xx.h.
Referenced by SpiSetDataSize().
#define DSS_VAL16 0xF |
Definition at line 262 of file LPC21xx.h.
Referenced by SpiSetDataSize().
#define DSS_VAL8 0x7 |
Definition at line 254 of file LPC21xx.h.
Referenced by SpiSetDataSize().
#define EXTINT SCB->ext.flag /* Flag Register */ |
Definition at line 417 of file LPC21xx.h.
Referenced by baro_scp_init(), EXTINT0_ISR(), EXTINT_ISR(), max11040_hw_init(), max1168_arch_init(), micromag_hw_init(), and ms2100_arch_init().
Definition at line 419 of file LPC21xx.h.
Referenced by baro_scp_init(), max11040_hw_init(), max1168_arch_init(), micromag_hw_init(), and ms2100_arch_init().
#define EXTPOLAR SCB->ext.polar /* Polarity Register */ |
Definition at line 420 of file LPC21xx.h.
Referenced by baro_scp_init(), max11040_hw_init(), max1168_arch_init(), micromag_hw_init(), and ms2100_arch_init().
#define GPIO ((gpioRegs_t *)0xE0028000) |
#define I2C0CONCLR I2C0->conclr /* Control Clear Register */ |
#define I2C0CONSET I2C0->conset /* Control Set Register */ |
#define I2C1CONCLR I2C1->conclr /* Control Clear Register */ |
#define I2C1CONSET I2C1->conset /* Control Set Register */ |
#define IO0CLR GPIO->clr0 /* P0 Pin Output Clear Register */ |
Definition at line 336 of file LPC21xx.h.
Referenced by gpio_clear(), gpio_toggle(), and main().
#define IO0DIR GPIO->dir0 /* P0 Pin Direction Register */ |
Definition at line 335 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), EXTINT_ISR(), gpio_setup_input(), gpio_setup_output(), and main().
#define IO0PIN GPIO->in0 /* P0 Pin Value Register */ |
Definition at line 333 of file LPC21xx.h.
Referenced by gpio_get(), gpio_toggle(), and main().
#define IO0SET GPIO->set0 /* P0 Pin Output Set Register */ |
Definition at line 334 of file LPC21xx.h.
Referenced by gpio_set(), gpio_toggle(), and main().
#define IO1CLR GPIO->clr1 /* P1 Pin Output Clear Register */ |
Definition at line 340 of file LPC21xx.h.
Referenced by gpio_clear(), gpio_toggle(), and PWM_ISR().
#define IO1DIR GPIO->dir1 /* P1 Pin Direction Register */ |
Definition at line 339 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), gpio_setup_input(), and gpio_setup_output().
#define IO1PIN GPIO->in1 /* P1 Pin Value Register */ |
Definition at line 337 of file LPC21xx.h.
Referenced by gpio_get(), and gpio_toggle().
#define IO1SET GPIO->set1 /* P1 Pin Output Set Register */ |
Definition at line 338 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), gpio_set(), gpio_toggle(), and PWM_ISR().
#define MAMCR SCB->mam.cr /* Control Register */ |
Definition at line 397 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define MAMTIM SCB->mam.tim /* Timing Control Register */ |
Definition at line 398 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define MEMMAP SCB->memmap |
Definition at line 401 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define PINSEL0 PINSEL->sel0 /* Pin Function Select Register 0 */ |
Definition at line 347 of file LPC21xx.h.
Referenced by adc_init(), and baro_MS5534A_init().
#define PINSEL1 PINSEL->sel1 /* Pin Function Select Register 1 */ |
Definition at line 348 of file LPC21xx.h.
Referenced by adc_init(), ADS8344_init(), baro_scp_init(), dac_init(), EXTINT_ISR(), lcd_dogm_init_hw(), max11040_hw_init(), micromag_hw_init(), spi1_arch_init(), and spi_slave_hs_init().
#define PINSEL2 PINSEL->sel2 /* Pin Function Select Register 2 */ |
Definition at line 349 of file LPC21xx.h.
Referenced by actuators_4015_init(), and actuators_4017_init().
#define PLLCFG SCB->pll.cfg /* Configuration Register */ |
Definition at line 405 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define PLLCON SCB->pll.con /* Control Register */ |
Definition at line 404 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define PLLFEED SCB->pll.feed /* Feed Register */ |
Definition at line 407 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define PLLSTAT SCB->pll.stat /* Status Register */ |
Definition at line 406 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define PWM ((pwmTmrRegs_t *)0xE0014000) |
#define PWMIR PWM->ir /* Interrupt Register */ |
#define PWMLER PWM->ler /* Latch Enable Register */ |
Definition at line 108 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_pwm_arch_init(), baro_MS5534A_init(), and PWM_ISR().
#define PWMMCR PWM->mcr /* Match Control Register */ |
Definition at line 99 of file LPC21xx.h.
Referenced by actuators_4015_init(), and PWM_ISR().
#define PWMMR0 PWM->mr0 /* Match Register 0 */ |
Definition at line 100 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_pwm_arch_init(), baro_MS5534A_init(), and PWM_ISR().
#define PWMMR2 PWM->mr2 /* Match Register 2 */ |
Definition at line 102 of file LPC21xx.h.
Referenced by baro_MS5534A_init().
#define PWMPCR PWM->pcr /* Control Register */ |
Definition at line 107 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_pwm_arch_init(), and baro_MS5534A_init().
#define PWMPR PWM->pr /* Prescale Register */ |
Definition at line 97 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_pwm_arch_init(), and baro_MS5534A_init().
#define PWMTCR PWM->tcr /* Timer Control Register */ |
Definition at line 95 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_pwm_arch_init(), and baro_MS5534A_init().
#define RNE 2 |
Definition at line 279 of file LPC21xx.h.
Referenced by SPI1_ISR(), and SpiReceive().
#define RTCALDOM RTC->aldom /* Alarm Day Of Month Register */ |
#define RTCALDOW RTC->aldow /* Alarm Day Of Week Register */ |
#define RTCALDOY RTC->aldoy /* Alarm Day Of Year Register */ |
#define RTCCIIR RTC->ciir /* Counter Increment Interrupt Register */ |
#define RTCCTIME0 RTC->ctime0 /* Consolidated Time Register 0 */ |
#define RTCCTIME1 RTC->ctime1 /* Consolidated Time Register 1 */ |
#define RTCCTIME2 RTC->ctime2 /* Consolidated Time Register 2 */ |
#define RTCPREFRAC RTC->prefrac /* Prescale Value Register (fraction) */ |
#define RTCPREINT RTC->preint /* Prescale Value Register (integer) */ |
#define RTIC 1 |
Definition at line 291 of file LPC21xx.h.
Referenced by SpiClearRti().
#define RTIM 1 |
Definition at line 272 of file LPC21xx.h.
Referenced by SpiDisableRti(), and SpiEnableRti().
#define RTMIS 1 |
Definition at line 285 of file LPC21xx.h.
Referenced by SpiAutomaton(), and SpiSlaveAutomaton().
#define RXIM 2 |
Definition at line 273 of file LPC21xx.h.
Referenced by spi_slave_hs_init(), SpiDisableRxi(), and SpiEnableRxi().
#define SCB ((scbRegs_t *)0xE01FC000) |
Definition at line 394 of file LPC21xx.h.
Referenced by mcu_arch_init(), and mcu_deep_sleep().
#define SIC 3 |
Definition at line 188 of file LPC21xx.h.
Referenced by I2cClearIT().
#define SPI0 ((spiRegs_t *)0xE0020000) |
Definition at line 195 of file LPC21xx.h.
Referenced by spi0_arch_init().
#define SPI1 ((sspRegs_t *)0xE0068000) |
Definition at line 210 of file LPC21xx.h.
Referenced by spi1_arch_init().
#define SSE 1 |
Definition at line 266 of file LPC21xx.h.
Referenced by spi_slave_hs_init(), and SpiDisable().
#define SSPCPSR SPI1->cpsr /* Clock prescale register */ |
Definition at line 226 of file LPC21xx.h.
Referenced by ADS8344_init(), baro_scp_init(), lcd_dogm_init_hw(), max11040_hw_init(), micromag_hw_init(), spi1_arch_init(), and spi_slave_hs_init().
#define SSPCR0 SPI1->cr0 /* Control Register 0 */ |
Definition at line 222 of file LPC21xx.h.
Referenced by ADS8344_init(), baro_scp_init(), lcd_dogm_init_hw(), max11040_hw_init(), micromag_hw_init(), spi1_arch_init(), and spi_slave_hs_init().
#define SSPCR1 SPI1->cr1 /* Control Register 1 */ |
Definition at line 223 of file LPC21xx.h.
Referenced by ADS8344_init(), baro_scp_init(), lcd_dogm_init_hw(), max11040_hw_init(), micromag_hw_init(), spi1_arch_init(), and spi_slave_hs_init().
#define SSPDR SPI1->dr /* Data register */ |
Definition at line 224 of file LPC21xx.h.
Referenced by baro_scp_read(), baro_scp_start_high_res_measurement(), lcd_spi_tx(), read_values(), send_request(), SPI1_ISR(), and SSP_ISR().
#define SSPIMSC SPI1->imsc /* Interrupt mask register */ |
Definition at line 227 of file LPC21xx.h.
Referenced by spi_slave_hs_init().
#define SSPSR SPI1->sr /* Status register */ |
Definition at line 225 of file LPC21xx.h.
Referenced by SPI1_ISR().
#define STA 5 |
Definition at line 182 of file LPC21xx.h.
Referenced by I2cSendStart().
#define STAC 5 |
Definition at line 189 of file LPC21xx.h.
Referenced by I2cClearStart().
#define STO 4 |
Definition at line 181 of file LPC21xx.h.
Referenced by I2cFail(), and I2cSendStop().
#define T0CCR TMR0->ccr /* Capture Control Register */ |
Definition at line 60 of file LPC21xx.h.
Referenced by icp_scale_init(), ppm_arch_init(), pwm_input_init(), sys_time_arch_init(), tacho_mb_init(), trig_ext_init(), and trigger_ext_init().
#define T0EMR TMR0->emr /* External Match Register */ |
Definition at line 65 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), actuators_ppm_init(), and sys_time_arch_init().
#define T0IR TMR0->ir /* Interrupt Register */ |
Definition at line 50 of file LPC21xx.h.
Referenced by TIMER0_ISR().
#define T0MCR TMR0->mcr /* Match Control Register */ |
Definition at line 55 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), actuators_ppm_init(), and sys_time_arch_init().
#define T0MR0 TMR0->mr0 /* Match Register 0 */ |
Definition at line 56 of file LPC21xx.h.
Referenced by sys_tick_irq_handler(), and sys_time_arch_init().
#define T0MR1 TMR0->mr1 /* Match Register 1 */ |
Definition at line 57 of file LPC21xx.h.
Referenced by actuators_4015_init(), actuators_4017_init(), and actuators_ppm_init().
#define T0PR TMR0->pr /* Prescale Register */ |
Definition at line 53 of file LPC21xx.h.
Referenced by sys_time_arch_init().
#define T0TC TMR0->tc /* Timer Counter */ |
Definition at line 52 of file LPC21xx.h.
Referenced by get_sys_time_msec(), get_sys_time_usec(), ms2100_reset_cb(), and sys_time_usleep().
#define T0TCR TMR0->tcr /* Timer Control Register */ |
Definition at line 51 of file LPC21xx.h.
Referenced by sys_time_arch_init().
#define TMR0 ((pwmTmrRegs_t *)0xE0004000) |
#define TMR1 ((pwmTmrRegs_t *)0xE0008000) |
#define TNF 1 |
Definition at line 278 of file LPC21xx.h.
Referenced by SpiTransmit().
#define TXIM 3 |
Definition at line 274 of file LPC21xx.h.
Referenced by SpiDisableTxi(), and SpiEnableTxi().
#define TXMIS 3 |
Definition at line 287 of file LPC21xx.h.
Referenced by SpiAutomaton(), and SpiSlaveAutomaton().
#define U0_PINMASK (0x0000000F) /* PINSEL0 Mask for UART0 */ |
#define U0_PINMASK_RX (0x0000000C) /* PINSEL0 Mask for UART0 RX only */ |
#define U0_PINSEL (0x00000005) /* PINSEL0 Value for UART0 */ |
#define U0_PINSEL_RX (0x00000004) /* PINSEL0 Value for UART0 RX only */ |
#define U0DLL UART0_BASE->dll /* Divisor Latch Register (LSB) */ |
#define U0DLM UART0_BASE->dlm /* Divisor Latch Register (MSB) */ |
#define U0FCR UART0_BASE->fcr /* FIFO Control Register */ |
#define U0IER UART0_BASE->ier /* Interrupt Enable Register */ |
#define U0IIR UART0_BASE->iir /* Interrupt ID Register */ |
#define U0LCR UART0_BASE->lcr /* Line Control Register */ |
#define U0LSR UART0_BASE->lsr /* Line Status Register */ |
#define U0RBR UART0_BASE->rbr /* Receive Buffer Register */ |
#define U0SCR UART0_BASE->scr /* Scratch Pad Register */ |
#define U0THR UART0_BASE->thr /* Transmit Holding Register */ |
#define U1_PINMASK (0x000F0000) /* PINSEL0 Mask for UART1 */ |
#define U1_PINMASK_RX (0x000C0000) /* PINSEL0 Mask for UART1 RX only */ |
#define U1_PINSEL (0x00050000) /* PINSEL0 Value for UART1 */ |
#define U1_PINSEL_RX (0x00040000) /* PINSEL0 Value for UART1 RX only */ |
#define U1DLL UART1_BASE->dll /* Divisor Latch Register (LSB) */ |
#define U1DLM UART1_BASE->dlm /* Divisor Latch Register (MSB) */ |
#define U1FCR UART1_BASE->fcr /* FIFO Control Register */ |
#define U1IER UART1_BASE->ier /* Interrupt Enable Register */ |
#define U1IIR UART1_BASE->iir /* Interrupt ID Register */ |
#define U1LCR UART1_BASE->lcr /* Line Control Register */ |
#define U1LSR UART1_BASE->lsr /* Line Status Register */ |
#define U1MCR UART1_BASE->mcr /* MODEM Control Register */ |
#define U1MSR UART1_BASE->msr /* MODEM Status Register */ |
#define U1RBR UART1_BASE->rbr /* Receive Buffer Register */ |
#define U1SCR UART1_BASE->scr /* Scratch Pad Register */ |
#define U1THR UART1_BASE->thr /* Transmit Holding Register */ |
#define UART0_BASE ((uartRegs_t *)0xE000C000) |
#define UART1_BASE ((uartRegs_t *)0xE0010000) |
#define VICDefVectAddr VIC->defVectAddr /* Default Vector Address Register */ |
Definition at line 437 of file LPC21xx.h.
Referenced by mcu_arch_init().
#define VICFIQStatus VIC->fiqStatus /* FIQ Status Register */ |
#define VICIntEnable VIC->intEnable /* Interrupt Enable Register */ |
Definition at line 431 of file LPC21xx.h.
Referenced by actuators_4015_init(), adc_init(), ADS8344_init(), baro_scp_init(), lcd_dogm_init_hw(), max11040_hw_init(), max1168_arch_init(), micromag_hw_init(), ms2100_arch_init(), spi1_arch_init(), spi_lock(), spi_resume(), spi_slave_hs_init(), sys_time_arch_init(), and VCOM_init().
#define VICIntEnClear VIC->intEnClear /* Interrupt Enable Clear Register */ |
Definition at line 432 of file LPC21xx.h.
Referenced by mcu_arch_init(), spi_lock(), and spi_resume().
#define VICIntSelect VIC->intSelect /* Interrupt Select Register */ |
Definition at line 430 of file LPC21xx.h.
Referenced by actuators_4015_init(), adc_init(), ADS8344_init(), baro_scp_init(), lcd_dogm_init_hw(), max11040_hw_init(), max1168_arch_init(), mcu_arch_init(), micromag_hw_init(), ms2100_arch_init(), spi1_arch_init(), spi_slave_hs_init(), sys_time_arch_init(), and VCOM_init().
#define VICIRQStatus VIC->irqStatus /* IRQ Status Register */ |
#define VICProtection VIC->protection /* Protection Enable Register */ |
#define VICRawIntr VIC->rawIntr /* Raw Interrupt Status Register */ |
#define VICSoftInt VIC->softInt /* Software Interrupt Register */ |
#define VICSoftIntClear VIC->softIntClear /* Software Interrupt Clear Register */ |
#define VICVectAddr VIC->vectAddr /* Vector Address Register */ |
Definition at line 436 of file LPC21xx.h.
Referenced by adcISR0(), adcISR1(), EXTINT0_ISR(), EXTINT_ISR(), PWM_ISR(), SPI1_ISR(), spi1_ISR(), SSP_ISR(), TIMER0_ISR(), and USBIntHandler().
#define VICVectAddr0 VIC->vectAddr0 /* Vector Address 0 Register */ |
#define VICVectAddr1 VIC->vectAddr1 /* Vector Address 1 Register */ |
#define VICVectAddr10 VIC->vectAddr10 /* Vector Address 10 Register */ |
#define VICVectAddr11 VIC->vectAddr11 /* Vector Address 11 Register */ |
Definition at line 449 of file LPC21xx.h.
Referenced by baro_scp_init().
#define VICVectAddr12 VIC->vectAddr12 /* Vector Address 12 Register */ |
#define VICVectAddr13 VIC->vectAddr13 /* Vector Address 13 Register */ |
#define VICVectAddr14 VIC->vectAddr14 /* Vector Address 14 Register */ |
#define VICVectAddr15 VIC->vectAddr15 /* Vector Address 15 Register */ |
#define VICVectAddr2 VIC->vectAddr2 /* Vector Address 2 Register */ |
#define VICVectAddr3 VIC->vectAddr3 /* Vector Address 3 Register */ |
#define VICVectAddr4 VIC->vectAddr4 /* Vector Address 4 Register */ |
#define VICVectAddr5 VIC->vectAddr5 /* Vector Address 5 Register */ |
#define VICVectAddr6 VIC->vectAddr6 /* Vector Address 6 Register */ |
#define VICVectAddr7 VIC->vectAddr7 /* Vector Address 7 Register */ |
#define VICVectAddr8 VIC->vectAddr8 /* Vector Address 8 Register */ |
#define VICVectAddr9 VIC->vectAddr9 /* Vector Address 9 Register */ |
#define VICVectCntl0 VIC->vectCntl0 /* Vector Control 0 Register */ |
#define VICVectCntl1 VIC->vectCntl1 /* Vector Control 1 Register */ |
#define VICVectCntl10 VIC->vectCntl10 /* Vector Control 10 Register */ |
#define VICVectCntl11 VIC->vectCntl11 /* Vector Control 11 Register */ |
Definition at line 465 of file LPC21xx.h.
Referenced by baro_scp_init().
#define VICVectCntl12 VIC->vectCntl12 /* Vector Control 12 Register */ |
#define VICVectCntl13 VIC->vectCntl13 /* Vector Control 13 Register */ |
#define VICVectCntl14 VIC->vectCntl14 /* Vector Control 14 Register */ |
#define VICVectCntl15 VIC->vectCntl15 /* Vector Control 15 Register */ |
#define VICVectCntl2 VIC->vectCntl2 /* Vector Control 2 Register */ |
#define VICVectCntl3 VIC->vectCntl3 /* Vector Control 3 Register */ |
#define VICVectCntl4 VIC->vectCntl4 /* Vector Control 4 Register */ |
#define VICVectCntl5 VIC->vectCntl5 /* Vector Control 5 Register */ |
#define VICVectCntl6 VIC->vectCntl6 /* Vector Control 6 Register */ |
#define VICVectCntl7 VIC->vectCntl7 /* Vector Control 7 Register */ |
#define VICVectCntl8 VIC->vectCntl8 /* Vector Control 8 Register */ |
#define VICVectCntl9 VIC->vectCntl9 /* Vector Control 9 Register */ |
#define VPBDIV SCB->vpbdiv |
Definition at line 414 of file LPC21xx.h.
Referenced by mcu_arch_init().