Skip to content

Allow F_CPU redefinition #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cores/arduino/stm32/stm32_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
|(STM32_CORE_VERSION_PATCH << 8U )\
|(STM32_CORE_VERSION_EXTRA))

#define F_CPU SystemCoreClock
#define USE_HAL_DRIVER

#ifdef STM32F0xx
Expand Down Expand Up @@ -53,6 +52,10 @@
#error "STM32YYxx chip series is not defined in boards.txt."
#endif

#ifndef F_CPU
#define F_CPU SystemCoreClock
#endif

// Here define some compatibility
#ifndef CAN1
#define CAN1 CAN
Expand Down