+static void cleanup (void)
+/* Remove the driver on exit */
+{
+ em_unload ();
+}
+
+
+
static void fill (register unsigned* page, register unsigned char count, register unsigned num)
{
register unsigned char i;
cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));
exit (EXIT_FAILURE);
}
+ atexit (cleanup);
/* Get the number of available pages */
PageCount = em_pagecount ();
cputhex16 (I);
}
- /* TEST #1: em_copyfrom/em_copyto. */
+ /* TEST #2: em_copyfrom/em_copyto. */
cputs ("\r\nTesting em_copyfrom/em_copyto");
/* We're filling now 384 bytes per run to test the copy routines with