SAMV71: Add UART register definition header file

This commit is contained in:
Gregory Nutt
2015-03-08 08:42:22 -06:00
parent 3f35f7ff07
commit 6c608a05c7
2 changed files with 590 additions and 17 deletions
+4 -3
View File
@@ -481,7 +481,6 @@
/* LIN Mode Register (USART only) */ /* LIN Mode Register (USART only) */
#if defined(CONFIG_ARCH_CHIP_SAM3X) || defined(CONFIG_ARCH_CHIP_SAM3A) #if defined(CONFIG_ARCH_CHIP_SAM3X) || defined(CONFIG_ARCH_CHIP_SAM3A)
# define UART_LINMR_
# define UART_LINMR_NACT_SHIFT (0) /* Bits 0-1: LIN Node Action */ # define UART_LINMR_NACT_SHIFT (0) /* Bits 0-1: LIN Node Action */
# define UART_LINMR_NACT_MASK (3 << UART_LINMR_NACT_SHIFT) # define UART_LINMR_NACT_MASK (3 << UART_LINMR_NACT_SHIFT)
# define UART_LINMR_NACT_PUBLISH (0 << UART_LINMR_NACT_SHIFT) /* USART transmits response */ # define UART_LINMR_NACT_PUBLISH (0 << UART_LINMR_NACT_SHIFT) /* USART transmits response */
@@ -495,7 +494,8 @@
# define UART_LINMR_WKUPTYP (1 << 7) /* Bit 7: Wakeup Signal Type */ # define UART_LINMR_WKUPTYP (1 << 7) /* Bit 7: Wakeup Signal Type */
# define UART_LINMR_DLC_SHIFT (8) /* Bits 8-15: Data Length Control */ # define UART_LINMR_DLC_SHIFT (8) /* Bits 8-15: Data Length Control */
# define UART_LINMR_DLC_MASK (0xff << UART_LINMR_DLC_SHIFT) # define UART_LINMR_DLC_MASK (0xff << UART_LINMR_DLC_SHIFT)
# define UART_LINMR_PDCM (1 << 0) /* Bit 0: PDC Mode */ # define UART_LINMR_DLC(n) ((uint32_t)(n) << UART_LINMR_DLC_SHIFT)
# define UART_LINMR_PDCM (1 << 16) /* Bit 16: PDC Mode */
#endif #endif
/* LIN Identifier Register (USART only) */ /* LIN Identifier Register (USART only) */
@@ -509,7 +509,8 @@
#define UART_WPMR_WPEN (1 << 0) /* Bit 0: Write Protect Enable (USART only) */ #define UART_WPMR_WPEN (1 << 0) /* Bit 0: Write Protect Enable (USART only) */
#define UART_WPMR_WPKEY_SHIFT (8) /* Bits 8-31: Write Protect KEY (USART only) */ #define UART_WPMR_WPKEY_SHIFT (8) /* Bits 8-31: Write Protect KEY (USART only) */
#define UART_WPMR_WPKEY_MASK (0x00ffffff << UART_WPMR_WPKEY_SHIFT) #define UART_WPMR_WPKEY_MASK (0x00ffffff << UART_WPMR_WPKEY_SHIFT)
# define UART_WPMR_WPKEY (0x00555341 << UART_WPMR_WPKEY_SHIFT) # define UART_WPMR_WPKEY (0x00554152 << UART_WPMR_WPKEY_SHIFT)
# define USART_WPMR_WPKEY (0x00555341 << UART_WPMR_WPKEY_SHIFT)
/* USART Write Protect Status Register (USART only) */ /* USART Write Protect Status Register (USART only) */
File diff suppressed because it is too large Load Diff