Browse Source

Fix CYCLES_PER_MICROSECOND conflict on STM32F1

pull/1/head
Scott Lahteine 7 years ago
parent
commit
12c5fdfdb5
  1. 2
      Marlin/src/core/macros.h
  2. 2
      Marlin/src/pins/pins_STM32F1R.h

2
Marlin/src/core/macros.h

@ -46,7 +46,7 @@
#define _O3 __attribute__((optimize("O3"))) #define _O3 __attribute__((optimize("O3")))
// Clock speed factors // Clock speed factors
#ifndef CYCLES_PER_MICROSECOND #if !defined(CYCLES_PER_MICROSECOND) && !defined(__STM32F1__)
#define CYCLES_PER_MICROSECOND (F_CPU / 1000000L) // 16 or 20 on AVR #define CYCLES_PER_MICROSECOND (F_CPU / 1000000L) // 16 or 20 on AVR
#endif #endif

2
Marlin/src/pins/pins_STM32F1R.h

@ -20,7 +20,7 @@
* *
*/ */
#if !defined(__STM32F1__) #ifndef __STM32F1__
#error "Oops! Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu." #error "Oops! Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu."
#endif #endif

Loading…
Cancel
Save