I guess technically you could make a gigantic C struct definition describing your microcontroller's entire memory map
-
Show this thread
-
even including bitfields for each configuration register
1 reply 0 retweets 1 likeShow this thread -
Replying to @11rcombs
It'd be a pain in the ass to use and maintain, especially across multiple related devices. Much simpler to use one struct per register.
1 reply 0 retweets 0 likes -
Replying to @baudvine
it might not be a _good_ idea… …but that doesn't mean it's not a thing you could do
2 replies 0 retweets 1 like
I've seen this done for independent hardware blocks/peripherals, possibly in the Linux kernel. An entire μC would be kind of ridiculous for anything larger than a PIC16-size thing though. Memory layouts are sparse, you'd need padding everywhere.
1:09 PM - 11 Jun 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.