Configuration of CPU peripherals for the Adafruit Metro M4 Express.  
More...
Configuration of CPU peripherals for the Adafruit Metro M4 Express. 
- Author
 - Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@pos.nosp@m.teo..nosp@m.net 
 
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
 | 
| 
#define  | USE_VREG_BUCK   (1) | 
|   | Enable the internal DC/DC converter The board is equipped with L_EXT (L1) of 10uH at VSW pin. 
  | 
|   | 
 | 
| 
#define  | CLOCK_CORECLOCK   MHZ(120) | 
|   | 
 | 
| 
#define  | EXTERNAL_OSC32_SOURCE   1 | 
|   | 
| 
#define  | INTERNAL_OSC32_SOURCE   0 | 
|   | 
| 
#define  | ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE   0 | 
|   | 
 | 
| 
#define  | RTT_FREQUENCY   (32768U) | 
|   | 
 | 
| 
#define  | TIMER_0_CHANNELS   2 | 
|   | 
| 
#define  | TIMER_0_ISR   isr_tc0 | 
|   | 
| 
#define  | TIMER_1_CHANNELS   2 | 
|   | 
| 
#define  | TIMER_1_ISR   isr_tc2 | 
|   | 
| 
#define  | TIMER_NUMOF   ARRAY_SIZE(timer_config) | 
|   | 
| static const tc32_conf_t  | timer_config [] | 
|   | 
◆ adc_channels
Initial value:= {
    
}
#define ADC1_INPUTCTRL_MUXPOS_PB09
Alias for AIN1.
 
#define ADC0_INPUTCTRL_MUXPOS_PA04
Alias for AIN4.
 
#define ADC1_INPUTCTRL_MUXPOS_PB08
Alias for AIN0.
 
#define ADC0_INPUTCTRL_MUXPOS_PA05
Alias for AIN5.
 
#define ADC0_INPUTCTRL_MUXPOS_PA06
Alias for AIN6.
 
#define ADC0_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
 
 
Definition at line 57 of file periph_conf.h.
 
 
◆ i2c_config
Initial value:= {
    {
        .dev      = &(SERCOM5->I2CM),
    },
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
@ I2C_FLAG_NONE
No flags set.
 
@ GPIO_MUX_D
select peripheral function D
 
#define SAM0_GCLK_PERIPH
12-48 MHz (DFLL) clock
 
 
Definition at line 87 of file periph_conf.h.
 
 
◆ sam_usbdev_config
Initial value:= {
    {
        .device = &USB->DEVICE,
    }
}
@ GPIO_MUX_H
select peripheral function H
 
 
Definition at line 213 of file periph_conf.h.
 
 
◆ timer_config
Initial value:= {
    {   
        .dev            = TC0,
        .irq            = TC0_IRQn,
        .mclk           = &MCLK->APBAMASK.reg,
        .mclk_mask      = MCLK_APBAMASK_TC0 | MCLK_APBAMASK_TC1,
        .gclk_id        = TC0_GCLK_ID,
        .flags          = TC_CTRLA_MODE_COUNT32,
    },
    {   
        .dev            = TC2,
        .irq            = TC2_IRQn,
        .mclk           = &MCLK->APBBMASK.reg,
        .mclk_mask      = MCLK_APBBMASK_TC2 | MCLK_APBBMASK_TC3,
        .gclk_id        = TC2_GCLK_ID,
        .flags          = TC_CTRLA_MODE_COUNT32,
    }
}
@ SAM0_GCLK_TIMER
4/8MHz clock for timers
 
 
Definition at line 115 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
 
    
    {
        .dev      = &SERCOM3->USART,
 
 
 
 
    },
}
@ UART_PAD_RX_1
select pad 1
 
@ UART_FLAG_NONE
No flags set.
 
@ UART_PAD_TX_0
select pad 0
 
@ GPIO_MUX_C
select peripheral function C
 
 
Definition at line 228 of file periph_conf.h.