libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/sam/memorymap.h>
#include <libopencm3/sam/common/pmc_common_all.h>
#include <libopencm3/sam/common/pmc_common_3a3s3x.h>
#include <libopencm3/sam/common/pmc_common_3a3u3x.h>
Go to the source code of this file.
Macros | |
#define | PMC_PCR MMIO32(PMC_BASE + 0x010C) |
#define | PMC_MCKR_PLLADIV2 (0x01 << 12) |
#define | PMC_PCR_EN (0x01 << 28) |
#define | PMC_PCR_DIV_SHIFT 16 |
#define | PMC_PCR_DIV_MASK (0x03 << PMC_PCR_DIV_SHIFT) |
#define | PMC_PCR_DIV_PERIPH_DIV_MCK (0x00 << PMC_PCR_DIV_SHIFT) |
#define | PMC_PCR_DIV_PERIPH_DIV2_MCK (0x01 << PMC_PCR_DIV_SHIFT) |
#define | PMC_PCR_DIV_PERIPH_DIV4_MCK (0x02 << PMC_PCR_DIV_SHIFT) |
#define | PMC_PCR_CMD (0x01 << 12) |
#define | PMC_PCR_PID_SHIFT 0 |
#define | PMC_PCR_PID_MASK (0x3F << PMC_PCR_PID_SHIFT) |
#define PMC_PCR_DIV_MASK (0x03 << PMC_PCR_DIV_SHIFT) |
#define PMC_PCR_DIV_PERIPH_DIV2_MCK (0x01 << PMC_PCR_DIV_SHIFT) |
#define PMC_PCR_DIV_PERIPH_DIV4_MCK (0x02 << PMC_PCR_DIV_SHIFT) |
#define PMC_PCR_DIV_PERIPH_DIV_MCK (0x00 << PMC_PCR_DIV_SHIFT) |
#define PMC_PCR_PID_MASK (0x3F << PMC_PCR_PID_SHIFT) |