add rp2040 to library.properties; minor comment

pull/33/head
doctea 9 months ago
parent 03a3e07ddc
commit 6a8451f8d9
  1. 2
      library.properties
  2. 4
      src/platforms/rp2040.h

@ -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)
category=Timing
url=https://github.com/midilab/uClock
architectures=avr,arm,samd,stm32,esp32
architectures=avr,arm,samd,stm32,esp32,rp2040
includes=uClock.h

@ -1,6 +1,7 @@
#include <Arduino.h>
#include "pico/sync.h"
// todo: make this a build flag, so user can choose which method to use?
#define MULTICORE
#ifdef MULTICORE
@ -22,8 +23,7 @@
return true;
}
void initTimer(uint32_t init_clock)
{
void initTimer(uint32_t init_clock) {
// 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!
add_repeating_timer_us(init_clock, &handlerISR, NULL, &timer);

Loading…
Cancel
Save