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)
32 #ifndef SPI_DEV_1_USED
33 #if defined(BOARD_SIPEED_LONGAN_NANO_TFT)
34 #define SPI_DEV_1_USED 1
36 #define SPI_DEV_1_USED 0
40 #ifndef I2C_DEV_1_USED
41 #define I2C_DEV_1_USED 1
44 #include "periph_cpu.h"
47 #include "cfg_i2c_default.h"
48 #include "cfg_spi_default.h"
49 #include "cfg_timer_default.h"
50 #include "cfg_uart_default.h"
51 #include "cfg_usbdev_default.h"
68 #if !MODULE_PERIPH_DAC
72 #if !defined(BOARD_SIPEED_LONGAN_NANO_TFT)
80 #if !MODULE_PERIPH_DAC
88 #define ADC_NUMOF ARRAY_SIZE(adc_config)
102 #define DAC_NUMOF ARRAY_SIZE(dac_config)
112 .rcu_mask = RCU_APB1EN_TIMER4EN_Msk,
123 #if !MODULE_PERIPH_CAN
126 .rcu_mask = RCU_APB1EN_TIMER3EN_Msk,
140 #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.
static const adc_conf_t adc_config[]
ADC configuration.
static const pwm_conf_t pwm_config[]
Actual PWM configuration.
static const dac_conf_t dac_config[]
DAC configuration.
@ GPIO_AF_OUT_PP
alternate function output - push-pull
@ APB1
Advanced Peripheral Bus 1
Common peripheral configuration for GD32VF103 boards.
ADC device configuration.
gpio_t pin
pin connected to the channel
DAC line configuration data.
gpio_t pin
pin connected to the line
PWM device configuration.
mini_timer_t * dev
Timer used.