Make F_CPU a compile-time constant (#21051)

This commit is contained in:
X-Ryl669 authored and GitHub committed 2021-02-26 17:59:28 -06:00
1 parent f384f81253
commit 56462cf082
3 files changed
+25

No files matched your search

@@ -24,3 +24,9 @@
#if defined(USBD_USE_CDC_MSC) && DISABLED(NO_SD_HOST_DRIVE)
#define HAS_SD_HOST_DRIVE 1
#endif
// Fix F_CPU not being a compile-time constant in STSTM32 framework
#ifdef BOARD_F_CPU
#undef F_CPU
#define F_CPU BOARD_F_CPU
#endif