@ -6,5 +6,5 @@ sentence=BPM clock generator for Arduino platform.
paragraph=A Library to implement BPM clock tick calls using hardware interruption. Supported and tested on AVR boards(ATmega168/328, ATmega16u4/32u4 and ATmega2560) and ARM boards(Teensy, Seedstudio XIAO M0. ESP32 and STM32)
paragraph=A Library to implement BPM clock tick calls using hardware interruption. Supported and tested on AVR boards(ATmega168/328, ATmega16u4/32u4 and ATmega2560) and ARM boards(Teensy, Seedstudio XIAO M0. ESP32 and STM32)
// todo: make this a build flag, so user can choose which method to use?
#define MULTICORE
#define MULTICORE
#ifdef MULTICORE
#ifdef MULTICORE
@ -22,8 +23,7 @@
returntrue;
returntrue;
}
}
voidinitTimer(uint32_tinit_clock)
voidinitTimer(uint32_tinit_clock){
{
// set up RPi interrupt timer
// set up RPi interrupt timer
// todo: actually should be -init_clock so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick!
// todo: actually should be -init_clock so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick!