Common peripheral configuration for GD32VF103 boards. More...
Common peripheral configuration for GD32VF103 boards.
Definition in file periph_common_conf.h.
Go to the source code of this file.
#define | CLOCK_CORECLOCK MHZ(108) |
CPU clock frequency in Hz. | |
#define | CLOCK_AHB CLOCK_CORECLOCK |
Equal to the CPU clock. | |
#define | CLOCK_APB1 CLOCK_AHB/2 |
Half AHB clock. | |
#define | CLOCK_APB2 CLOCK_AHB |
Equal to the AHB clock. | |
RTT/RTC configuration | |
#define | RTT_CLOCK_FREQUENCY (40000U) |
IRC40K is used as clock source. | |
#define | RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* maximum RTT frequency in Hz */ |
#define | RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* RTT frequency in Hz */ |
#define CLOCK_AHB CLOCK_CORECLOCK |
Equal to the CPU clock.
Definition at line 40 of file periph_common_conf.h.
#define CLOCK_APB1 CLOCK_AHB/2 |
Half AHB clock.
Definition at line 41 of file periph_common_conf.h.
#define CLOCK_APB2 CLOCK_AHB |
Equal to the AHB clock.
Definition at line 42 of file periph_common_conf.h.
#define CLOCK_CORECLOCK MHZ(108) |
CPU clock frequency in Hz.
Definition at line 37 of file periph_common_conf.h.
#define RTT_CLOCK_FREQUENCY (40000U) |
IRC40K is used as clock source.
Definition at line 51 of file periph_common_conf.h.
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* RTT frequency in Hz */ |
Definition at line 57 of file periph_common_conf.h.
#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* maximum RTT frequency in Hz */ |
Definition at line 54 of file periph_common_conf.h.