Peripheral MCU configuration for the bastwan board.  
More...
Peripheral MCU configuration for the bastwan board. 
- Author
 - Lokotius Filzer h-fil.nosp@m.zer@.nosp@m.pixel.nosp@m.sala.nosp@m.t.de 
 
Definition in file periph_conf.h.
#include "periph_cpu.h"
#include "macros/units.h"
 
Go to the source code of this file.
| 
#define  | CLOCK_CORECLOCK   MHZ(48) | 
|   | GCLK reference speed. 
  | 
|   | 
| 
#define  | USE_VREG_BUCK   (1) | 
|   | Enable the internal DC/DC converter The board is equipped with the necessary inductor. 
  | 
|   | 
 | 
| 
#define  | EXTERNAL_OSC32_SOURCE   1 | 
|   | 
| 
#define  | INTERNAL_OSC32_SOURCE   0 | 
|   | 
| 
#define  | ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE   0 | 
|   | 
 | 
| 
#define  | RTT_FREQUENCY   (32768U) | 
|   | 
 | 
| 
#define  | ADC_PRESCALER   ADC_CTRLB_PRESCALER_DIV256 | 
|   | 
| 
#define  | ADC_NEG_INPUT   ADC_INPUTCTRL_MUXNEG(0x18u) | 
|   | 
| 
#define  | ADC_REF_DEFAULT   ADC_REFCTRL_REFSEL_INTVCC2 | 
|   | 
| 
#define  | ADC_NUMOF   ARRAY_SIZE(adc_channels) | 
|   | 
| static const adc_conf_chan_t  | adc_channels [] | 
|   | 
◆ adc_channels
Initial value:= {
    
}
#define ADC_INPUTCTRL_MUXPOS_PA08
Alias for PIN16.
 
#define ADC_INPUTCTRL_MUXPOS_PA09
Alias for PIN17.
 
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
 
#define ADC_INPUTCTRL_MUXPOS_PA04
Alias for PIN4.
 
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
 
 
Definition at line 173 of file periph_conf.h.
 
 
◆ i2c_config
Initial value:= {
    {
        .dev = &(SERCOM1->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_C
select peripheral function C
 
#define SAM0_GCLK_MAIN
120 MHz main clock
 
 
Definition at line 131 of file periph_conf.h.
 
 
◆ sam_usbdev_config
Initial value:= {
    {
        .device = &USB->DEVICE,
    }
}
@ GPIO_MUX_G
select peripheral function G
 
@ SAM0_GCLK_48MHZ
48MHz clock
 
 
Definition at line 189 of file periph_conf.h.
 
 
◆ timer_config
Initial value:= {
    {   
        .dev = TC0,
        .irq = TC0_IRQn,
        .mclk = &MCLK->APBCMASK.reg,
        .mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
        .gclk_id = TC0_GCLK_ID,
        .flags = TC_CTRLA_MODE_COUNT32,
    }
}
@ SAM0_GCLK_TIMER
4/8MHz clock for timers
 
 
Definition at line 40 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
    {    
        .dev = &SERCOM3->USART,
 
 
 
 
    }
}
@ UART_PAD_RX_3
select pad 3
 
@ UART_FLAG_NONE
No flags set.
 
@ UART_PAD_TX_2
select pad 2
 
@ GPIO_MUX_D
select peripheral function D
 
 
Definition at line 62 of file periph_conf.h.