summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-31 12:30:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-31 12:30:01 -0600
commitbbd35f303a989f1a3778be879d87e2e6670ba410 (patch)
treeaec6bf4ad97516d49b0090f227156dba2c4ba5f9 /nuttx
parent59a557466b69ee01487abcff192eb2fbf9cd8475 (diff)
downloadpx4-nuttx-bbd35f303a989f1a3778be879d87e2e6670ba410.tar.gz
px4-nuttx-bbd35f303a989f1a3778be879d87e2e6670ba410.tar.bz2
px4-nuttx-bbd35f303a989f1a3778be879d87e2e6670ba410.zip
EFM32: Add PRS signals
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/efm32/chip/efm32_prs.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/efm32/chip/efm32_prs.h b/nuttx/arch/arm/src/efm32/chip/efm32_prs.h
index f1dc68464..b0d8d6e01 100644
--- a/nuttx/arch/arm/src/efm32/chip/efm32_prs.h
+++ b/nuttx/arch/arm/src/efm32/chip/efm32_prs.h
@@ -522,4 +522,89 @@
#define _PRS_CH_CTRL_ASYNC_DEFAULT 0x00000000UL /* Mode DEFAULT for PRS_CH_CTRL */
#define PRS_CH_CTRL_ASYNC_DEFAULT (_PRS_CH_CTRL_ASYNC_DEFAULT << 28) /* Shifted mode DEFAULT for PRS_CH_CTRL */
+/* PRS Signals *****************************************************************************************************************/
+
+#define PRS_VCMP_OUT ((1 << 16) + 0) /* PRS Voltage comparator output */
+#define PRS_ACMP0_OUT ((2 << 16) + 0) /* PRS Analog comparator output */
+#define PRS_ACMP1_OUT ((3 << 16) + 0) /* PRS Analog comparator output */
+#define PRS_DAC0_CH0 ((6 << 16) + 0) /* PRS DAC ch0 conversion done */
+#define PRS_DAC0_CH1 ((6 << 16) + 1) /* PRS DAC ch1 conversion done */
+#define PRS_ADC0_SINGLE ((8 << 16) + 0) /* PRS ADC single conversion done */
+#define PRS_ADC0_SCAN ((8 << 16) + 1) /* PRS ADC scan conversion done */
+#define PRS_USART0_IRTX ((16 << 16) + 0) /* PRS USART 0 IRDA out */
+#define PRS_USART0_TXC ((16 << 16) + 1) /* PRS USART 0 TX complete */
+#define PRS_USART0_RXDATAV ((16 << 16) + 2) /* PRS USART 0 RX Data Valid */
+#define PRS_USART1_TXC ((17 << 16) + 1) /* PRS USART 1 TX complete */
+#define PRS_USART1_RXDATAV ((17 << 16) + 2) /* PRS USART 1 RX Data Valid */
+#define PRS_USART2_TXC ((18 << 16) + 1) /* PRS USART 2 TX complete */
+#define PRS_USART2_RXDATAV ((18 << 16) + 2) /* PRS USART 2 RX Data Valid */
+#define PRS_TIMER0_UF ((28 << 16) + 0) /* PRS Timer 0 Underflow */
+#define PRS_TIMER0_OF ((28 << 16) + 1) /* PRS Timer 0 Overflow */
+#define PRS_TIMER0_CC0 ((28 << 16) + 2) /* PRS Timer 0 Compare/Capture 0 */
+#define PRS_TIMER0_CC1 ((28 << 16) + 3) /* PRS Timer 0 Compare/Capture 1 */
+#define PRS_TIMER0_CC2 ((28 << 16) + 4) /* PRS Timer 0 Compare/Capture 2 */
+#define PRS_TIMER1_UF ((29 << 16) + 0) /* PRS Timer 1 Underflow */
+#define PRS_TIMER1_OF ((29 << 16) + 1) /* PRS Timer 1 Overflow */
+#define PRS_TIMER1_CC0 ((29 << 16) + 2) /* PRS Timer 1 Compare/Capture 0 */
+#define PRS_TIMER1_CC1 ((29 << 16) + 3) /* PRS Timer 1 Compare/Capture 1 */
+#define PRS_TIMER1_CC2 ((29 << 16) + 4) /* PRS Timer 1 Compare/Capture 2 */
+#define PRS_TIMER2_UF ((30 << 16) + 0) /* PRS Timer 2 Underflow */
+#define PRS_TIMER2_OF ((30 << 16) + 1) /* PRS Timer 2 Overflow */
+#define PRS_TIMER2_CC0 ((30 << 16) + 2) /* PRS Timer 2 Compare/Capture 0 */
+#define PRS_TIMER2_CC1 ((30 << 16) + 3) /* PRS Timer 2 Compare/Capture 1 */
+#define PRS_TIMER2_CC2 ((30 << 16) + 4) /* PRS Timer 2 Compare/Capture 2 */
+#define PRS_TIMER3_UF ((31 << 16) + 0) /* PRS Timer 3 Underflow */
+#define PRS_TIMER3_OF ((31 << 16) + 1) /* PRS Timer 3 Overflow */
+#define PRS_TIMER3_CC0 ((31 << 16) + 2) /* PRS Timer 3 Compare/Capture 0 */
+#define PRS_TIMER3_CC1 ((31 << 16) + 3) /* PRS Timer 3 Compare/Capture 1 */
+#define PRS_TIMER3_CC2 ((31 << 16) + 4) /* PRS Timer 3 Compare/Capture 2 */
+#define PRS_USB_SOF ((36 << 16) + 0) /* PRS USB Start of Frame */
+#define PRS_USB_SOFSR ((36 << 16) + 1) /* PRS USB Start of Frame Sent/Received */
+#define PRS_RTC_OF ((40 << 16) + 0) /* PRS RTC Overflow */
+#define PRS_RTC_COMP0 ((40 << 16) + 1) /* PRS RTC Compare 0 */
+#define PRS_RTC_COMP1 ((40 << 16) + 2) /* PRS RTC Compare 1 */
+#define PRS_UART0_TXC ((41 << 16) + 1) /* PRS USART 0 TX complete */
+#define PRS_UART0_RXDATAV ((41 << 16) + 2) /* PRS USART 0 RX Data Valid */
+#define PRS_UART1_TXC ((42 << 16) + 1) /* PRS USART 0 TX complete */
+#define PRS_UART1_RXDATAV ((42 << 16) + 2) /* PRS USART 0 RX Data Valid */
+#define PRS_GPIO_PIN0 ((48 << 16) + 0) /* PRS GPIO pin 0 */
+#define PRS_GPIO_PIN1 ((48 << 16) + 1) /* PRS GPIO pin 1 */
+#define PRS_GPIO_PIN2 ((48 << 16) + 2) /* PRS GPIO pin 2 */
+#define PRS_GPIO_PIN3 ((48 << 16) + 3) /* PRS GPIO pin 3 */
+#define PRS_GPIO_PIN4 ((48 << 16) + 4) /* PRS GPIO pin 4 */
+#define PRS_GPIO_PIN5 ((48 << 16) + 5) /* PRS GPIO pin 5 */
+#define PRS_GPIO_PIN6 ((48 << 16) + 6) /* PRS GPIO pin 6 */
+#define PRS_GPIO_PIN7 ((48 << 16) + 7) /* PRS GPIO pin 7 */
+#define PRS_GPIO_PIN8 ((49 << 16) + 0) /* PRS GPIO pin 8 */
+#define PRS_GPIO_PIN9 ((49 << 16) + 1) /* PRS GPIO pin 9 */
+#define PRS_GPIO_PIN10 ((49 << 16) + 2) /* PRS GPIO pin 10 */
+#define PRS_GPIO_PIN11 ((49 << 16) + 3) /* PRS GPIO pin 11 */
+#define PRS_GPIO_PIN12 ((49 << 16) + 4) /* PRS GPIO pin 12 */
+#define PRS_GPIO_PIN13 ((49 << 16) + 5) /* PRS GPIO pin 13 */
+#define PRS_GPIO_PIN14 ((49 << 16) + 6) /* PRS GPIO pin 14 */
+#define PRS_GPIO_PIN15 ((49 << 16) + 7) /* PRS GPIO pin 15 */
+#define PRS_LETIMER0_CH0 ((52 << 16) + 0) /* PRS LETIMER CH0 Out */
+#define PRS_LETIMER0_CH1 ((52 << 16) + 1) /* PRS LETIMER CH1 Out */
+#define PRS_BURTC_OF ((55 << 16) + 0) /* PRS BURTC Overflow */
+#define PRS_BURTC_COMP0 ((55 << 16) + 1) /* PRS BURTC Compare 0 */
+#define PRS_LESENSE_SCANRES0 ((57 << 16) + 0) /* PRS LESENSE SCANRES register, bit 0 */
+#define PRS_LESENSE_SCANRES1 ((57 << 16) + 1) /* PRS LESENSE SCANRES register, bit 1 */
+#define PRS_LESENSE_SCANRES2 ((57 << 16) + 2) /* PRS LESENSE SCANRES register, bit 2 */
+#define PRS_LESENSE_SCANRES3 ((57 << 16) + 3) /* PRS LESENSE SCANRES register, bit 3 */
+#define PRS_LESENSE_SCANRES4 ((57 << 16) + 4) /* PRS LESENSE SCANRES register, bit 4 */
+#define PRS_LESENSE_SCANRES5 ((57 << 16) + 5) /* PRS LESENSE SCANRES register, bit 5 */
+#define PRS_LESENSE_SCANRES6 ((57 << 16) + 6) /* PRS LESENSE SCANRES register, bit 6 */
+#define PRS_LESENSE_SCANRES7 ((57 << 16) + 7) /* PRS LESENSE SCANRES register, bit 7 */
+#define PRS_LESENSE_SCANRES8 ((58 << 16) + 0) /* PRS LESENSE SCANRES register, bit 8 */
+#define PRS_LESENSE_SCANRES9 ((58 << 16) + 1) /* PRS LESENSE SCANRES register, bit 9 */
+#define PRS_LESENSE_SCANRES10 ((58 << 16) + 2) /* PRS LESENSE SCANRES register, bit 10 */
+#define PRS_LESENSE_SCANRES11 ((58 << 16) + 3) /* PRS LESENSE SCANRES register, bit 11 */
+#define PRS_LESENSE_SCANRES12 ((58 << 16) + 4) /* PRS LESENSE SCANRES register, bit 12 */
+#define PRS_LESENSE_SCANRES13 ((58 << 16) + 5) /* PRS LESENSE SCANRES register, bit 13 */
+#define PRS_LESENSE_SCANRES14 ((58 << 16) + 6) /* PRS LESENSE SCANRES register, bit 14 */
+#define PRS_LESENSE_SCANRES15 ((58 << 16) + 7) /* PRS LESENSE SCANRES register, bit 15 */
+#define PRS_LESENSE_DEC0 ((59 << 16) + 0) /* PRS LESENSE Decoder PRS out 0 */
+#define PRS_LESENSE_DEC1 ((59 << 16) + 1) /* PRS LESENSE Decoder PRS out 1 */
+#define PRS_LESENSE_DEC2 ((59 << 16) + 2) /* PRS LESENSE Decoder PRS out 2 */
+
#endif /* __ARCH_ARM_SRC_EFM32_CHIP_EFM32_PRS_H */