Configuration of CPU peripherals for the Microchip SAM E51 Curiosity Nano board.  
More...
Configuration of CPU peripherals for the Microchip SAM E51 Curiosity Nano board. 
- Author
 - Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com 
 
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 the necessary inductor. 
  | 
|   | 
 | 
| 
#define  | CLOCK_CORECLOCK   MHZ(120) | 
|   | 
 | 
| 
#define  | EXTERNAL_OSC32_SOURCE   1 | 
|   | 
| 
#define  | ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE   0 | 
|   | 
 | 
| 
#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 [] | 
|   | 
 | 
| 
#define  | UART_0_ISR   isr_sercom5_2 | 
|   | 
| 
#define  | UART_0_ISR_TX   isr_sercom5_0 | 
|   | 
| 
#define  | UART_1_ISR   isr_sercom4_2 | 
|   | 
| 
#define  | UART_1_ISR_TX   isr_sercom4_0 | 
|   | 
| 
#define  | UART_2_ISR   isr_sercom0_2 | 
|   | 
| 
#define  | UART_2_ISR_TX   isr_sercom0_0 | 
|   | 
| 
#define  | UART_3_ISR   isr_sercom3_2 | 
|   | 
| 
#define  | UART_3_ISR_TX   isr_sercom3_0 | 
|   | 
| 
#define  | UART_NUMOF   ARRAY_SIZE(uart_config) | 
|   | 
| 
static const uart_conf_t  | uart_config [] | 
|   | 
 | 
| 
#define  | RTT_FREQUENCY   (32768U) | 
|   | 
 | 
Pins are only routed to solder pads on the board, no connector populated  
 | 
| static const sam0_common_usb_config_t  | sam_usbdev_config [] | 
|   | 
◆ adc_channels
Initial value:= {
    
}
#define ADC0_INPUTCTRL_MUXPOS_PA04
Alias for AIN4.
 
#define ADC0_INPUTCTRL_MUXPOS_PA07
Alias for AIN7.
 
#define ADC0_INPUTCTRL_MUXPOS_PA10
Alias for AIN10.
 
#define ADC1_INPUTCTRL_MUXPOS_PB05
Alias for AIN7.
 
#define ADC1_INPUTCTRL_MUXPOS_PB04
Alias for AIN6.
 
#define ADC0_INPUTCTRL_MUXPOS_PB01
Alias for AIN13.
 
#define ADC0_INPUTCTRL_MUXPOS_PB03
Alias for AIN15.
 
#define ADC0_INPUTCTRL_MUXPOS_PB08
Alias for AIN2.
 
#define ADC0_INPUTCTRL_MUXPOS_PA11
Alias for AIN11.
 
#define ADC0_INPUTCTRL_MUXPOS_PB00
Alias for AIN12.
 
#define ADC1_INPUTCTRL_MUXPOS_PB07
Alias for AIN9.
 
#define ADC0_INPUTCTRL_MUXPOS_PA03
Alias for AIN1.
 
#define ADC0_INPUTCTRL_MUXPOS_PB09
Alias for AIN3.
 
#define ADC0_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
 
#define ADC1_INPUTCTRL_MUXPOS_PB06
Alias for AIN8.
 
 
Definition at line 306 of file periph_conf.h.
 
 
◆ candev_conf
Initial value:= {
    {
        .can = CAN0,
    },
    {
        .can = CAN1,
    }
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
#define SAM0_GCLK_PERIPH
12-48 MHz (DFLL) clock
 
 
Available CAN interfaces. 
Definition at line 89 of file periph_conf.h.
 
 
◆ i2c_config
Initial value:= {
    {
        .dev      = &SERCOM2->I2CM,
    },
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
@ I2C_FLAG_NONE
No flags set.
 
@ GPIO_MUX_C
select peripheral function C
 
 
Definition at line 253 of file periph_conf.h.
 
 
◆ pwm_chan0_config
Initial value:= {
    
    {
        .chan = 0,
    },
}
@ GPIO_MUX_F
select peripheral function F
 
 
Definition at line 199 of file periph_conf.h.
 
 
◆ pwm_config
Initial value:= {
    {
        .chan = pwm_chan0_config,
    },
}
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.
 
#define TCC_CONFIG(tim)
Static initializer for TCC timer configuration.
 
@ SAM0_GCLK_48MHZ
48MHz clock
 
 
Definition at line 209 of file periph_conf.h.
 
 
◆ sam_usbdev_config
Initial value:= {
    {
        .device = &USB->DEVICE,
    }
}
@ GPIO_MUX_H
select peripheral function H
 
 
Definition at line 283 of file periph_conf.h.
 
 
◆ spi_config
Initial value:= {
    {
        .dev      = &SERCOM1->SPI,
 
 
 
 
 
    },
}
@ SPI_PAD_MISO_3
use pad 3 for MISO line
 
@ SPI_PAD_MOSI_0_SCK_1
use pad 0 for MOSI, pad 1 for SCK
 
 
Definition at line 226 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 52 of file periph_conf.h.