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.
 | 
| 
#define  | HFXO_FREQ   (39000000UL) | 
|   | 
| 
#define  | CMU_HFXOINIT   CMU_HFXOINIT_DEFAULT | 
|   | 
| 
#define  | LFXO_FREQ   (32768UL) | 
|   | 
| 
#define  | CMU_LFXOINIT   CMU_LFXOINIT_DEFAULT | 
|   | 
| 
#define  | CLK_MUX_NUMOF   ARRAY_SIZE(clk_mux_config) | 
|   | 
| 
#define  | CLK_DIV_NUMOF   ARRAY_SIZE(clk_div_config) | 
|   | 
| static const clk_mux_t  | clk_mux_config [] | 
|   | 
| static const clk_div_t  | clk_div_config [] | 
|   | 
◆ 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 69 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 58 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 46 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 37 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 90 of file periph_conf.h.
 
 
◆ spi_config
Initial value:= {
    {
        .dev = USART0,
        .cmu = cmuClock_USART0,
        .irq = USART0_RX_IRQn
    }
}
 
Definition at line 109 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 130 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
    {
        .dev = EUSART1,
        .cmu = cmuClock_EUSART1,
        .irq = EUSART1_RX_IRQn
    }
}
 
Definition at line 156 of file periph_conf.h.