NuttX worth considering if you're coming from Linux background, I liked it and related community, BTW they have a workshop later this year.
Back to the subject implementing drivers can be a good warmup exercise, you can get inspiration from hints I have shared: