??? 06/16/10 11:07 Read: times |
#176719 - No, you don't need a HAL header file for each variant! Responding to: ???'s previous message |
Murray R. Van Luyn said:
I may need to study a bunch of different controllers, and then set up a HAL header file with macro sets for each variation. No - you just have one HAL header file that defines an entirely processor-independent set of functions. It's only within the HAL funtions that you need to worry about the specifics of the SFRs. Crumbs, that got complicated in a hurry! Yes, that is always the big difference between writing code that's specific to one particular target, and code that has to be generic to a range of targets! See the recent discussion about why "gimme code" requests seeking ready-to-run software are so often disappointed!! |