Enabling Interrupts

To enable interrupts withing XCSB use the interrupt_enable function.

Enabling and disabling interrupts within XCSB can be problematic. This is because it is possible for the programmer to disable interrupts within one task while re-enabling them in another.

This problem is addressed within the enable and disable functions. Always use these functions in preference to directly setting and clearing the GIE bit in the status register.