mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
103 stars 43 forks source link

Timer ISR code for L21 #41

Closed CreativeRobotics closed 3 years ago

CreativeRobotics commented 3 years ago

This is a request for help, if you can. I'm trying to set up one of the timers on an L21G18B to create a preiodic interrupt. I'm starting with a simple timer library that compiles for the D21, but it won't for the L21 - lots of different registers in the timer and gclk configuration - I was wondering of anyone who uses the Mattairtech core has any code lying around that works and that I can build on...

CreativeRobotics commented 3 years ago

Ok - I hacked the tone.cpp code and got what I wanted working with TC0.