Advanced Topics
K
A
DAK
149
Your Fatal Exit Procedure can be coded as a Large model C procedure as illustrated in
the following example.
#include "amx831ec.h" /* AMX Error Code Definitions */
void cdecl fatalexit(
int error) /* Fatal exit error code */
{:
Inhibit all interrupt sources
Provide an external indication of the fatal condition
:
}
Halt Locations
If AMX takes its fatal exit and you have not provided a Fatal Exit Procedure (or if your
procedure returns to AMX), AMX will disable interrupts and halt at entry point AMHALT.
Entry point AMHALT, although private to AMX, is made PUBLIC to assist you in your
system development and testing. This one entry point is the only location within AMX
where a programmed halt can occur.