Part Number: EK-TM4C123GXL
Greetings,
I am just getting acquainted with the TM4C MCUs.
Is there a document that lists or hopefully discusses macros such as HWREGBITW?
Thanks,
John
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: EK-TM4C123GXL
Greetings,
I am just getting acquainted with the TM4C MCUs.
Is there a document that lists or hopefully discusses macros such as HWREGBITW?
Thanks,
John
Hello John,
I was looking but didn't really find any solid documentation for that. The macros are defined in hw_types.h so you can see what they do there.
HWREGBITW and similar are not really documented as originally they weren't really anything a user would see so there had been no need to really understand them - they had been just 'under the TivaWare hood' so to say. But HWREGBITW in particular ended up being used in a set of example projects which is probably where you saw it.
The key information for you is: The 'BITW' tag on it stands for Bitwise and is used for checking flags in application code typically.
We may need to revisit the documentation for a future update since it is used in application code. Hopefully this is sufficient enough detail for you to work with as you continue to familiarize yourself with our TivaWare libraries.
Best Regards,
Ralph Jacobi
Thanks for the info. Back before I was gray-headed things like that would be quite useful. But now that compilers are so smart, not so much.
I think you have me caught up for the moment. You and Charles Tsai have been a great help.
John