C++ syntax attribute

This commit is contained in:
Kizarm 2024-08-09 18:20:50 +02:00
parent a273d734ff
commit 90c3627a70

View file

@ -3,7 +3,7 @@
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
static constexpr unsigned ticks = SYSTEM_CORE_CLOCK / 1000u; static constexpr unsigned ticks = SYSTEM_CORE_CLOCK / 1000u;
static volatile unsigned counter = 0u; static volatile unsigned counter = 0u;
extern "C" void SysTick_Handler ()__attribute__((interrupt)); extern "C" [[gnu::interrupt]] void SysTick_Handler ();
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
void SysTick_Handler () { void SysTick_Handler () {
SysTick.SR = 0u; SysTick.SR = 0u;