Configuration of CPU peripherals for the STK3200 starter kit.  
More...
#include "cpu.h"
#include "periph_cpu.h"
#include "em_cmu.h"
Go to the source code of this file.
 | 
| 
#define  | CLOCK_HF   cmuSelect_HFXO | 
|   | 
| 
#define  | CLOCK_CORE_DIV   cmuClkDiv_1 | 
|   | 
| 
#define  | CLOCK_LFA   cmuSelect_LFXO | 
|   | 
| 
#define  | CLOCK_LFB   cmuSelect_CORELEDIV2 | 
|   | 
 | 
| 
#define  | RTT_FREQUENCY   (1U)              /* in Hz */ | 
|   | 
◆ adc_channel_config
Initial value:= {
    {
        .dev = 0,
        .input = adcSingleInputTemp,
        .reference = adcRef1V25,
        .acq_time = adcAcqTime8
    },
    {
        .dev = 0,
        .input = adcSingleInputVDDDiv3,
        .reference = adcRef1V25,
        .acq_time = adcAcqTime8
    }
}
 
Definition at line 56 of file periph_conf.h.
 
 
◆ adc_config
Initial value:= {
    {
        .dev = ADC0,
        .cmu = cmuClock_ADC0,
    }
}
 
Definition at line 49 of file periph_conf.h.
 
 
◆ i2c_config
Initial value:= {
    {
        .dev = I2C0,
        .loc = I2C_ROUTE_LOCATION_LOC6,
        .cmu = cmuClock_I2C0,
        .irq = I2C0_IRQn,
    }
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
 
Definition at line 79 of file periph_conf.h.
 
 
◆ spi_config
Initial value:= {
    {
        .dev = USART1,
 
        .loc = USART_ROUTE_LOCATION_LOC3,
        .cmu = cmuClock_USART1,
        .irq = USART1_RX_IRQn
    }
}
 
Definition at line 109 of file periph_conf.h.
 
 
◆ timer_config
Initial value:= {
    {
        .prescaler = {
            .dev = TIMER0,
            .cmu = cmuClock_TIMER0
        },
        .timer = {
            .dev = TIMER1,
            .cmu = cmuClock_TIMER1
        },
        .irq = TIMER1_IRQn,
        .channel_numof = 3
    }
}
 
Definition at line 131 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
    {
        .dev = LEUART0,
        .loc = LEUART_ROUTE_LOCATION_LOC0,
        .cmu = cmuClock_LEUART0,
        .irq = LEUART0_IRQn
    }
}
 
Definition at line 154 of file periph_conf.h.