Thanks, If I thought a bit before I typed I would have realized that. Most of my code the last 12 years has been C on dsPICs, but coworkers have been designing in ST micros recently. I am not very fond of the HAL system, but lots of folks seem to love it. I like setting all the registers myself.
I did as well, but once you write a low level driver for the nth time you kind of get sick of it and just want to build shit.
I was just playing with the very opposite of that idea recently actually, setting the peripheral configuration through a taylored bytecode. Should be portable, debuggable with the right infrastructure, statically analyzable and more easily external tool generatable. Maybe blasphemous for embedded programmers.