djphazer / O_C-Phazerville

The kitchen sink of O_C firmware - do all the things!
http://firmware.phazerville.com/
237 stars 35 forks source link

Initial prep for Teensy 4.1 drivers #28

Closed PaulStoffregen closed 11 months ago

PaulStoffregen commented 11 months ago

I've started working on porting to Teensy 4.1. So far no real code added, just a bunch of ifdefs for Teensy 3.2 vs Teensy 4.1 and a few very minor updates for the newer toolchain. Hopefully this is ok?

djphazer commented 11 months ago

Thanks, Paul! Looks reasonably safe to merge - just some fixes and scaffolding, yeah? Or should I wait until some of the TODOs are filled in?

Either way, I'll test it out soon.

PaulStoffregen commented 11 months ago

I'm hoping you'll merge this and put it to use with Teensy 3.2. In theory everything on Teensy 3.2 should remain the same. In practice, there's a lot of code built on top of these drivers. If I broke anything on Teensy 3.2, would be good to discover any problems sooner rather than later.

Will send more pull requests to gradually fill in the many TODOs. Since they're all inside ifdefs for Teensy 4, those should be pretty safe for keeping everything the same on Teensy 3.2.

PaulStoffregen commented 11 months ago

I started working on the display. Have the non-DMA part working. Should I add more commits to this pull request? I had imagined you would want to first approve the general ifdef structure.... then pull requests which only change stuff inside the ifdefs compiled only for Teensy 4 should be "easy", right?