code for NXP cortex M0 Serials IAP library