24#ifndef CONFIG_BOARD_HAS_HXTAL
25#define CONFIG_BOARD_HAS_HXTAL 1
28#ifndef CONFIG_BOARD_HAS_LXTAL
29#define CONFIG_BOARD_HAS_LXTAL 1
32#ifndef CONFIG_CLOCK_HXTAL
33#define CONFIG_CLOCK_HXTAL MHZ(8)
37#define I2C_DEV_1_USED 1
40#include "periph_cpu.h"
43#include "cfg_spi_default.h"
44#include "cfg_uart_default.h"
45#include "cfg_usbdev_default.h"
69 .rcu_mask = RCU_APB1EN_I2C1EN_Msk,
74#define I2C_NUMOF ARRAY_SIZE(i2c_config)
94#define ADC_NUMOF ARRAY_SIZE(adc_config)
105 .rcu_mask = RCU_APB2EN_TIMER0EN_Msk,
107 .irqn = TIMER0_Channel_IRQn
112 .rcu_mask = RCU_APB1EN_TIMER1EN_Msk,
120 .rcu_mask = RCU_APB1EN_TIMER4EN_Msk,
126#define TIMER_0_IRQN TIMER0_Channel_IRQn
127#define TIMER_1_IRQN TIMER1_IRQn
128#define TIMER_2_IRQN TIMER4_IRQn
130#define TIMER_NUMOF ARRAY_SIZE(timer_config)
140 .rcu_mask = RCU_APB1EN_TIMER2EN_Msk,
153 .rcu_mask = RCU_APB1EN_TIMER3EN_Msk,
166#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
static const i2c_conf_t i2c_config[]
PB10/PB11 (D15/D14) as I2C for Arduino UNO compatibility.
@ 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.
gpio_t pin
pin connected to the channel
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
PWM device configuration.
mini_timer_t * dev
Timer used.
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.