20#ifndef CONFIG_BOARD_HAS_HXTAL 
   21#define CONFIG_BOARD_HAS_HXTAL  1    
   24#ifndef CONFIG_BOARD_HAS_LXTAL 
   25#define CONFIG_BOARD_HAS_LXTAL  1    
   28#ifndef CONFIG_CLOCK_HXTAL 
   29#define CONFIG_CLOCK_HXTAL      MHZ(8)       
   33#define I2C_DEV_1_USED          1    
   36#include "periph_cpu.h" 
   39#include "cfg_spi_default.h" 
   40#include "cfg_uart_default.h" 
   41#include "cfg_usbdev_default.h" 
   65        .rcu_mask       = RCU_APB1EN_I2C1EN_Msk,
 
 
   70#define I2C_NUMOF   ARRAY_SIZE(i2c_config) 
   90#define ADC_NUMOF           ARRAY_SIZE(adc_config) 
  101        .rcu_mask = RCU_APB2EN_TIMER0EN_Msk,
 
  103        .irqn     = TIMER0_Channel_IRQn
 
  108        .rcu_mask = RCU_APB1EN_TIMER1EN_Msk,
 
  116        .rcu_mask = RCU_APB1EN_TIMER4EN_Msk,
 
  122#define TIMER_0_IRQN        TIMER0_Channel_IRQn 
  123#define TIMER_1_IRQN        TIMER1_IRQn 
  124#define TIMER_2_IRQN        TIMER4_IRQn 
  126#define TIMER_NUMOF         ARRAY_SIZE(timer_config) 
  136        .rcu_mask = RCU_APB1EN_TIMER2EN_Msk,
 
  149        .rcu_mask = RCU_APB1EN_TIMER3EN_Msk,
 
  162#define PWM_NUMOF ARRAY_SIZE(pwm_config) 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
@ GPIO_AF_OUT_PP
alternate function output - push-pull
 
@ APB1
Advanced Peripheral Bus 1.
 
@ APB2
Advanced Peripheral Bus 2.
 
Common peripheral configuration for GD32VF103 boards.
 
ADC device configuration.
 
I2C configuration structure.
 
PWM device configuration.
 
Timer device configuration.