National Parks Wallpapers
85 JPG | 1600 X 1200 Pixxs | 34 Mb
I’ve become accustomed to using the extended keywords in IAR’s EW IDE to define hardware registers at specific addresses. All hardware registers are defined as volatile, and read only registers are also defined as const. This was to both provide our engineers (myself included) with registers that look like variables instead of pointers to variables, and also to provide more efficient code, as additional variables wouldn’t be required in RAM to access hardware registers. The tradeoff being that the code won’t easily port to other IDEs. That’s always been fair in our projects, as we rarely move between IDEs when developing for a particular part, and the hardware registers need to get redefined anyway (and most likely the usage of them) if you are switching to a new processor.
You must be logged in to post a comment.