chap9/trap_test_handled.c File Reference
#include "pic24_all.h"
Go to the source code of this file.
|
Functions |
int | main (void) |
Detailed Description
Test installing an ISR for the MathError trap. Then, execute a divide by 0 and see if the trap silently handles the call or not (it does). If the trap is not handled, then
_DefaultInterrupt will catch it and report an error. See the
trap_test.c file for an example of an unhandled math error trap.
Definition in file trap_test_handled.c.
Function Documentation