Added RAMFUNC macro
Disable interrupts during IAP calls