Yes, NXP has developed an IEC60335 library that can be used with any of our Cortex-M3 based microcontrollers. Application note AN10918 has been written as a guide to use and implement the library. The application note can be downloaded from http://www.nxp.com/documents/application_note/AN10918.zip