XMEGA Power Reduction register definitions. More...
#include <chip/memory-map.h>#include <io.h>Go to the source code of this file.
Defines | |
Register Offsets | |
| #define | XMEGA_PR_PRGEN 0x00 |
| General Power Reduction Register. | |
| #define | XMEGA_PR_PRPA 0x01 |
| Power Reduction Port A. | |
| #define | XMEGA_PR_PRPB 0x02 |
| Power Reduction Port B. | |
| #define | XMEGA_PR_PRPC 0x03 |
| Power Reduction Port C. | |
| #define | XMEGA_PR_PRPD 0x04 |
| Power Reduction Port D. | |
| #define | XMEGA_PR_PRPE 0x05 |
| Power Reduction Port E. | |
| #define | XMEGA_PR_PRPF 0x06 |
| Power Reduction Port F. | |
Bitfields in PRGEN | |
| #define | PR_DMA_BIT 0 |
| DMA Controller. | |
| #define | PR_EVSYS_BIT 1 |
| Event System. | |
| #define | PR_RTC_BIT 2 |
| Real-Time Counter. | |
| #define | PR_EBI_BIT 3 |
| External Bus Interface. | |
| #define | PR_AES_BIT 4 |
| AES Module. | |
| #define | PR_USB_BIT 6 |
| USB Module. | |
Bitfields in PRPA and PRPB | |
| #define | PR_AC_BIT 0 |
| Analog Comparator. | |
| #define | PR_ADC_BIT 1 |
| Analog/Digital Converter. | |
| #define | PR_DAC_BIT 2 |
| Digital/Analog Converter. | |
Bitfields in PRPC, PRPD, PRPE and PRPF | |
| #define | PR_TC0_BIT 0 |
| Timer/Counter 0. | |
| #define | PR_TC1_BIT 1 |
| Timer/Counter 1. | |
| #define | PR_HIRES_BIT 2 |
| Hi-Resolution Extension. | |
| #define | PR_SPI_BIT 3 |
| Serial Peripheral Interface. | |
| #define | PR_USART0_BIT 4 |
| USART 0. | |
| #define | PR_USART1_BIT 5 |
| USART 1. | |
| #define | PR_TWI_BIT 6 |
| Two-Wire Interface. | |
Bit manipulation macros | |
| #define | PR_BIT(name) (1U << PR_##name##_BIT) |
| Create a mask with bit name set. | |
Register access macros | |
| #define | pr_read_reg(reg) _pr_read_reg(reg) |
| Read the value of PR register reg. | |
| #define | _pr_read_reg(reg) mmio_read8((void *)(PR_BASE + XMEGA_PR_##reg)) |
| #define | pr_write_reg(reg, value) _pr_write_reg(reg, value) |
| Write value to PR register reg. | |
| #define | _pr_write_reg(reg, value) mmio_write8((void *)(PR_BASE + XMEGA_PR_##reg), (value)) |
XMEGA Power Reduction register definitions.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file xmega_pr.h.
1.6.3