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#if defined(BOARD_SIPEED_LONGAN_NANO_TFT)
38#define SPI_DEV_1_USED 1
40#define SPI_DEV_1_USED 0
45#define I2C_DEV_1_USED 1
48#include "periph_cpu.h"
51#include "cfg_i2c_default.h"
52#include "cfg_spi_default.h"
53#include "cfg_timer_default.h"
54#include "cfg_uart_default.h"
55#include "cfg_usbdev_default.h"
76#if !defined(BOARD_SIPEED_LONGAN_NANO_TFT)
92#define ADC_NUMOF ARRAY_SIZE(adc_config)
106#define DAC_NUMOF ARRAY_SIZE(dac_config)
116 .rcu_mask = RCU_APB1EN_TIMER4EN_Msk,
127#if !MODULE_PERIPH_CAN
130 .rcu_mask = RCU_APB1EN_TIMER3EN_Msk,
144#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.
@ 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.