Skip to content
Snippets Groups Projects
Commit 159f5265 authored by Mark Frost's avatar Mark Frost
Browse files

#error if someone sets both USE_HSI and USE_HSE

parent 199a171e
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@
#define FUNCONF_DEBUGPRINTF_TIMEOUT 160000
#endif
#if defined(FUNCONF_USE_HSI) && defined(FUNCONF_USE_HSE) && FUNCONF_USE_HSI && FUNCONF_USE_HSE
#error FUNCONF_USE_HSI and FUNCONF_USE_HSE cannot both be set
#endif
#if !defined( FUNCONF_USE_HSI ) && !defined( FUNCONF_USE_HSE )
#define FUNCONF_USE_HSI 1 // Default to use HSI
......
......@@ -4,5 +4,8 @@
#define FUNCONF_TINYVECTOR 1
#define CH32V003 1
#define FUNCONF_USE_HSE 1
#define FUNCONF_USE_HSI 1
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment