mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
SAMV71: Add UART register definition header file
This commit is contained in:
@@ -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
Reference in New Issue
Block a user