#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 = (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_RIGHT | right aligned
|
PWM_CENTER | center aligned
|
Definition at line 220 of file periph_conf.h.
◆ adc_config
Initial value:= {
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
#define ADC_AVG_NONE
Disable hardware averaging.
#define ADC_AVG_MAX
Maximum hardware averaging (32 samples)
Definition at line 158 of file periph_conf.h.
◆ 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)),
},
}
#define CLOCK_CORECLOCK
System core clock in Hz.
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition at line 336 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 246 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI0,
.pin_cs = {
},
.simmask = SIM_SCGC6_SPI0_MASK
},
}
#define SPI_CS_UNDEF
Define value for unused CS line.
@ GPIO_IN_PU
configure as input with pull-up resistor
Definition at line 311 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,
},
}
@ KINETIS_LPUART
Kinetis Low-power UART (LPUART) module type.
@ UART_MODE_8N1
8 data bits, no parity, 1 stop bit
Definition at line 132 of file periph_conf.h.