From 197edd788850ee0ae54c1347062b802d7ce4244a Mon Sep 17 00:00:00 2001 From: midilab Date: Tue, 3 May 2022 15:53:58 -0300 Subject: [PATCH] added samd as arch on libraries.properties for xiao m0 support --- library.properties | 4 ++-- src/uClock.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/library.properties b/library.properties index be293af..d213f22 100755 --- a/library.properties +++ b/library.properties @@ -3,8 +3,8 @@ version=1.0.0 author=Romulo Silva maintainer=Romulo Silva sentence=BPM clock generator for Arduino and Teensy boards -paragraph=A Library to implement BPM clock tick calls using hardware interruption. Tested on ATmega168/328, ATmega16u4/32u4, ATmega2560 and Teensy ARM boards. +paragraph=A Library to implement BPM clock tick calls using hardware interruption. Tested on ATmega168/328, ATmega16u4/32u4, ATmega2560, Teensy ARM boards and Seedstudio XIAO M0 SAMD.. category=Timing url=https://github.com/midilab/uClock -architectures=avr,arm +architectures=avr,arm,samd includes=uClock.h diff --git a/src/uClock.cpp b/src/uClock.cpp index a5ee8e6..0c72666 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -202,7 +202,6 @@ void uClockClass::setTimerTempo(float bpm) TCCR1B |= tccr; ) #else - ATOMIC( #if defined(TEENSYDUINO) _uclockTimer.update(tick_us_interval); #endif @@ -210,7 +209,6 @@ void uClockClass::setTimerTempo(float bpm) #if defined(SEEED_XIAO_M0) _uclockTimer.setPeriod(tick_us_interval); #endif - ) #endif }