BeattieBoy
Member
I'd love to see the Arduino style serialEvent (and serialEvent1, etc...) interrupt implemented for the Teensy. It would be nice not to have to poll the serial port to check for new data. I've managed to implement them myself using the weak attribute to define them in mk20dx128.h and call them at the end their respective ISR routines in their respective .c files. But the function is only run if the user declares the function in their code, and their is no apparent code size effect. However I'm a far from advanced software guy, so it may not be a perfect implementation, but it seems to work just fine so far. You can find the files I modified here.