Skip to content

Commit 0073bf6

Browse files
Changed GD32F1 bootloader to default to 96Mhz as changes to the GD32F1 core now allow swicthing of clock speed which is independant of the bootloader speed, and 96Mhz is the fastest speed that the GD32 is documented to operate at and still supports USB
1 parent 5cccac7 commit 0073bf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
0 Bytes
Binary file not shown.

GD32F1/hardware.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ volatile int waitLoop;
124124
#define PLLMF_SHIFT 18
125125
#define USBPS_SHIFT 22
126126

127-
// set the speed option to 72Mhz as this is safe (as is 96Mhz)
128-
#define SPEED_120MHZ 1
127+
// Set the speed to 96Mhz as this is within spec and supports USB.
128+
#define SPEED_96MHZ 1
129129

130130
#if defined(SPEED_72MHZ)
131131
#define PLLMF 6

0 commit comments

Comments
 (0)