#include "periph_cpu.h"
Go to the source code of this file.
|
#define | CLOCK_RADIOXTAL (32000000ul) |
|
#define | CLOCK_CORECLOCK (48000000ul) |
|
#define | CLOCK_BUSCLOCK (CLOCK_CORECLOCK / 2) |
|
#define | CLOCK_MCGFLLCLK (CLOCK_CORECLOCK) |
|
#define | CLOCK_OSCERCLK (CLOCK_RADIOXTAL) |
|
#define | CLOCK_MCGIRCLK (4000000ul) |
|
static const clock_config_t | clock_config |
|
|
#define | PIT_NUMOF (1U) |
|
#define | PIT_CONFIG |
|
#define | LPTMR_NUMOF (1U) |
|
#define | LPTMR_CONFIG |
|
#define | TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF)) |
|
#define | PIT_BASECLOCK (CLOCK_BUSCLOCK) |
|
#define | LPTMR_ISR_0 isr_lptmr0 |
|
|
#define | LPUART_0_SRC 1 |
|
#define | LPUART_0_CLOCK CLOCK_MCGFLLCLK |
|
#define | UART_CLOCK_PM_BLOCKER KINETIS_PM_STOP |
|
#define | UART_MAX_UNCLOCKED_BAUDRATE 57600ul |
|
#define | UART_NUMOF ARRAY_SIZE(uart_config) |
|
#define | LPUART_0_ISR isr_lpuart0 |
|
static const uart_conf_t | uart_config [] |
|
|
#define | ADC_NUMOF ARRAY_SIZE(adc_config) |
|
#define | ADC_REF_SETTING 1 |
|
#define | ADC_REF_VOLTAGE (3.3f) |
|
#define | ADC_TEMPERATURE_CHANNEL (4) |
|
static const adc_conf_t | adc_config [] |
|
|
#define | HAVE_PWM_MODE_T |
|
#define | PWM_CHAN_MAX (4U) |
| PWM configuration structure.
|
|
enum | pwm_mode_t {
PWM_LEFT = PWM_MODE(0, 1),
PWM_RIGHT = PWM_MODE(0, 0),
PWM_CENTER = PWM_MODE(1, 1),
PWM_CENTER_INV = PWM_MODE(1, 0),
PWM_LEFT = (TPM_CnSC_MSB_MASK | TPM_CnSC_ELSB_MASK),
PWM_RIGHT = (TPM_CnSC_MSB_MASK | TPM_CnSC_ELSA_MASK),
PWM_CENTER = (TPM_CnSC_MSB_MASK),
PWM_LEFT,
PWM_RIGHT,
PWM_CENTER
} |
|
|
Clock configuration values based on the configured 16Mhz module clock.
Auto-generated by: cpu/kinetis/dist/calc_spi_scalers/calc_spi_scalers.c
|
#define | SPI_NUMOF ARRAY_SIZE(spi_config) |
|
static const uint32_t | spi_clk_config [] |
|
static const spi_conf_t | spi_config [] |
|
|
#define | KINETIS_TRNG TRNG |
|
◆ LPTMR_CONFIG
Value: { \
{ \
.dev = LPTMR0, \
.base_freq = 32768u, \
.src = 2, \
.irqn = LPTMR0_IRQn, \
}, \
}
Definition at line 97 of file periph_conf.h.
◆ PIT_CONFIG
Value: { \
{ \
.prescaler_ch = 0, \
.count_ch = 1, \
}, \
}
Definition at line 90 of file periph_conf.h.
◆ pwm_mode_t
Enumerator |
---|
PWM_LEFT | left aligned PWM
|
PWM_RIGHT | right aligned PWM
|
PWM_CENTER | not supported
|
PWM_CENTER_INV | not supported
|
PWM_LEFT | left aligned
|
PWM_RIGHT | right aligned
|
PWM_CENTER | center aligned
|
Definition at line 220 of file periph_conf.h.
◆ adc_config
◆ dac_config
Initial value:= {
{
.dev = DAC0,
.scgc_addr = &SIM->SCGC6,
.scgc_bit = SIM_SCGC6_DAC0_SHIFT,
},
}
Definition at line 203 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.i2c = I2C1,
.irqn = I2C1_IRQn,
.scl_pcr = (PORT_PCR_MUX(3)),
.sda_pcr = (PORT_PCR_MUX(3)),
},
}
Definition at line 335 of file periph_conf.h.
◆ pwm_config
Initial value:= {
{
.tpm = TPM0,
.chan = {
},
.chan_numof = 1,
.tpm_num = 0
},
{
.tpm = TPM1,
.chan = {
},
.chan_numof = 1,
.tpm_num = 1
}
}
Definition at line 245 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI0,
.pin_cs = {
},
.simmask = SIM_SCGC6_SPI0_MASK
},
}
Definition at line 310 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = LPUART0,
.freq = LPUART_0_CLOCK,
.pcr_tx = PORT_PCR_MUX(4),
.irqn = LPUART0_IRQn,
.scgc_addr = &SIM->SCGC5,
.scgc_bit = SIM_SCGC5_LPUART0_SHIFT,
},
}
Definition at line 132 of file periph_conf.h.