Loading...
Searching...
No Matches
periph_common_conf.h File Reference

Common peripheral configuration for GD32VF103 boards. More...

Detailed Description

Common peripheral configuration for GD32VF103 boards.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file periph_common_conf.h.

#include "macros/units.h"
#include "periph_cpu.h"
+ Include dependency graph for periph_common_conf.h:
+ This graph shows which files directly or indirectly include this file:

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 */
 

Macro Definition Documentation

◆ CLOCK_AHB

#define CLOCK_AHB   CLOCK_CORECLOCK

Equal to the CPU clock.

Definition at line 40 of file periph_common_conf.h.

◆ CLOCK_APB1

#define CLOCK_APB1   CLOCK_AHB/2

Half AHB clock.

Definition at line 41 of file periph_common_conf.h.

◆ CLOCK_APB2

#define CLOCK_APB2   CLOCK_AHB

Equal to the AHB clock.

Definition at line 42 of file periph_common_conf.h.

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   MHZ(108)

CPU clock frequency in Hz.

Definition at line 37 of file periph_common_conf.h.

◆ RTT_CLOCK_FREQUENCY

#define RTT_CLOCK_FREQUENCY   (40000U)

IRC40K is used as clock source.

Definition at line 51 of file periph_common_conf.h.

◆ RTT_FREQUENCY

#define RTT_FREQUENCY   (RTT_MAX_FREQUENCY) /* RTT frequency in Hz */

Definition at line 57 of file periph_common_conf.h.

◆ RTT_MAX_FREQUENCY

#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* maximum RTT frequency in Hz */

Definition at line 54 of file periph_common_conf.h.