Configuration of CPU peripherals for xG23-PK6068A board.
More...
Configuration of CPU peripherals for xG23-PK6068A board.
- Author
- Juergen Fitschen me@ju.nosp@m.e.yt
Definition in file periph_conf.h.
#include <stdint.h>
#include "cpu.h"
#include "periph_cpu.h"
Go to the source code of this file.
◆ ADC_DEV_NUMOF
◆ ADC_NUMOF
◆ CLK_DIV_NUMOF
◆ CLK_MUX_NUMOF
◆ CMU_HFXOINIT
#define CMU_HFXOINIT CMU_HFXOINIT_DEFAULT |
◆ CMU_LFXOINIT
#define CMU_LFXOINIT CMU_LFXOINIT_DEFAULT |
◆ HFXO_FREQ
#define HFXO_FREQ (39000000UL) |
◆ I2C_0_ISR
◆ I2C_NUMOF
◆ LFXO_FREQ
#define LFXO_FREQ (32768UL) |
◆ SPI_NUMOF
◆ TIMER_0_ISR
#define TIMER_0_ISR isr_timer0 |
◆ TIMER_0_MAX_VALUE
◆ TIMER_1_ISR
#define TIMER_1_ISR isr_letimer0 |
◆ TIMER_1_MAX_VALUE
◆ TIMER_NUMOF
◆ UART_0_ISR_RX
#define UART_0_ISR_RX isr_eusart1_rx |
◆ UART_NUMOF
◆ adc_channel_config
Initial value:= {
{
.dev = 0,
},
{
.dev = 0,
},
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition at line 73 of file periph_conf.h.
◆ adc_config
Initial value:= {
{
.dev = IADC0,
.cmu = cmuClock_IADC0,
.reference = iadcCfgReferenceInt1V2,
.reference_mV = 1210,
.gain = iadcCfgAnalogGain0P5x,
}
}
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
Definition at line 62 of file periph_conf.h.
◆ clk_div_config
Initial value:= {
{ .clk = cmuClock_HCLK, .div = 1 },
{ .clk = cmuClock_PCLK, .div = 1 },
{ .clk = cmuClock_LSPCLK, .div = 2 },
}
Definition at line 50 of file periph_conf.h.
◆ clk_mux_config
Initial value:= {
{ .clk = cmuClock_SYSCLK, .src = cmuSelect_HFXO },
{ .clk = cmuClock_EM01GRPACLK, .src = cmuSelect_HFXO },
{ .clk = cmuClock_EM01GRPCCLK, .src = cmuSelect_HFXO },
{ .clk = cmuClock_EM23GRPACLK, .src = cmuSelect_LFXO },
{ .clk = cmuClock_EUSART0CLK, .src = cmuSelect_HFXO },
}
Definition at line 41 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = I2C0,
.cmu = cmuClock_I2C0,
.irq = I2C0_IRQn,
}
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition at line 94 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = USART0,
.cmu = cmuClock_USART0,
.irq = USART0_RX_IRQn
}
}
Definition at line 113 of file periph_conf.h.
◆ timer_config
Initial value:= {
{
.dev = TIMER0,
.cmu = cmuClock_TIMER0,
.irq = TIMER0_IRQn
},
{
.dev = LETIMER0,
.cmu = cmuClock_LETIMER0,
.irq = LETIMER0_IRQn
}
}
Definition at line 134 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = EUSART1,
.cmu = cmuClock_EUSART1,
.irq = EUSART1_RX_IRQn
}
}
Definition at line 160 of file periph_conf.h.