chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

Added custom general exception handling #409

Closed majenkotech closed 6 years ago

majenkotech commented 6 years ago

You can now define in your sketch (with "C" linkage) a function _general_exception_handler(uint32_ code, uint32_t addr) which will override a default empty function.

That function, when a general exception occurs, gets passed the exception code and the address at which the exception occurred.