chipKIT32/chipKIT32-MAX — Issue #151: interrupts() and noInterrupts() are broken
Author: GeneApperson
Created: 2011-12-10 22:32:56+00:00
State: open
Labels: core

These are defined as macros in wiring.h that expand to calls to the plib functions INTEnableInterrupts and INTDisableInterrupts. However, due to the #define BYTE vs. typdef BYTE problem, plib.h can't be automatically included in the user sketch, so these macros generate compile errors because the plib functions are undefined.

The fix is to define interrupts() and noInterrupts() as functions instead of macros.