Skip to content

Commit

Permalink
[HAL/STM32F1] Build fix
Browse files Browse the repository at this point in the history
Fix build after d3c0241.

Issue #10998

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
  • Loading branch information
alexxy authored and thinkyhead committed Jun 12, 2018
1 parent 43bdd0b commit 1c48ce2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Marlin/src/HAL/HAL_STM32F1/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// --------------------------------------------------------------------------

#include <stdint.h>

#include <libmaple/atomic.h>
#include <Arduino.h>

// --------------------------------------------------------------------------
Expand Down Expand Up @@ -119,11 +119,11 @@ void HAL_init();
#define analogInputToDigitalPin(p) (p)
#endif

#define CRITICAL_SECTION_START uint32_t primask = __get_PRIMASK(); __disable_irq()
#define CRITICAL_SECTION_END if (!primask) __enable_irq()
#define ISRS_ENABLED() (!__get_PRIMASK())
#define ENABLE_ISRS() __enable_irq()
#define DISABLE_ISRS() __disable_irq()
#define CRITICAL_SECTION_START uint32_t primask = __get_primask(); (void)__iCliRetVal()
#define CRITICAL_SECTION_END if (!primask) (void)__iSeiRetVal()
#define ISRS_ENABLED() (!__get_primask)
#define ENABLE_ISRS() ((void)__iSeiRetVal())
#define DISABLE_ISRS() ((void)__iCliRetVal())

// On AVR this is in math.h?
#define square(x) ((x)*(x))
Expand Down

0 comments on commit 1c48ce2

Please sign in to comment.