I am new to Teensy development. I switched from using a 16Mhz Arduino because it was too slow for the type of real-time robotics control we needed. I had optimized the program to be completely interrupt driven, and had an average loop time of ~500ns which was still not fast enough (read controls, read sensors, software algorithm, update servos, update motors). I am excited to use the Teensy 4.0; it should exceed timing requirements for my application, as long as I can get all the I/O to be done via libraries that don't use delay/wait/sleep.
My question is mostly about getting information about the implementation used on each library specifically for the Teensy 4.0. Efficiency and implementation are often a point of discussion with many Arduino libraries (I seem to be missing these details in the Teensy realm).
For example, how are the native Teensy Serial1..6 UART libraries implemented? Do they use interrupts, are they efficient, and how much blocking do they do?
Once again, I'm asking for tips and insights on how to learn about the software libraries' implementation details.
Thanks
My question is mostly about getting information about the implementation used on each library specifically for the Teensy 4.0. Efficiency and implementation are often a point of discussion with many Arduino libraries (I seem to be missing these details in the Teensy realm).
For example, how are the native Teensy Serial1..6 UART libraries implemented? Do they use interrupts, are they efficient, and how much blocking do they do?
Once again, I'm asking for tips and insights on how to learn about the software libraries' implementation details.
Thanks