We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3434330 commit 16c8a53Copy full SHA for 16c8a53
gd32e10x/cmsis/gd/gd32e10x/include/gd32e10x.h
@@ -60,6 +60,14 @@ OF SUCH DAMAGE.
60
#error "Please select the target board type used in your application (in gd32e10x.h file)"
61
#endif
62
#endif /* high speed crystal oscillator value */
63
+
64
+#if HXTAL_VALUE == 8000000
65
+ #define HXTAL_VALUE_8M HXTAL_VALUE
66
+#elif HXTAL_VALUE == 25000000
67
+ #define HXTAL_VALUE_25M HXTAL_VALUE
68
+#else
69
+ #error "GD32E10X lib only support 8M and 25M oscillator (HXTAL)"
70
+#endif
71
72
/* define startup timeout value of high speed crystal oscillator (HXTAL) */
73
#if !defined (HXTAL_STARTUP_TIMEOUT)
0 commit comments