Other Parts Discussed in Thread: EK-TM4C123GXL
Tool/software:
Today I downloaded the current Tivaware for the TM4C123GXL LaunchPad. I ended up spending a lot of time trying to get the bool type configured so that I could include the "global" interrupt enable/disable Fn calls. This is an excerpt from the DRL-UG manual (this text is also more-or-less present in the interrupt.c source comments):
IntMasterDisable
Disables the processor interrupt.
Prototype:
bool
IntMasterDisable(void)
Description:
This function prevents the processor from receiving interrupts. This function does not affect
the set of interrupts enabled in the interrupt controller; it just gates the single interrupt from the
controller to the processor.
Note:
Previously, this function had no return value. As such, it was possible to include interrupt.h
and call this function without having included hw_types.h. Now that the return is a bool, a
compiler error occurs in this case. The solution is to include hw_types.h before including
interrupt.h.
Returns:
Returns true if interrupts were already disabled when the function was called or false if they
were initially enabled.
At issue: hw_types.h does NOT have any typedefs present in the file, certainly not a definition for "bool". I ended up placing one there. I did find a version of hw_types in the RTOS section that DID have a typedef for BOOL (uppercase), but that syntax did not work when copied it to my working include file (perhaps it is a C++ or C# syntax? ... I'm just a droid, and not very knowledgeable about such things).
A minor issue, by most measures, but it still ate up a couple of hours of my time and my solution is more (rather than less) a hack than a proper solution.
Thatisall.

