Mercurial > ecos
diff packages/hal/v85x/ceb_v850/current/src/plf_misc.c @ 103:95f3e12a6327 ecos-sw-2000-06-23
Merge from eCos master repository on 2000-06-23-16:41:10-BST
| author | jlarmour |
|---|---|
| date | Fri, 23 Jun 2000 17:06:31 +0000 |
| parents | b15c60e34c84 |
| children | 5a0cc6c243a9 |
line wrap: on
line diff
--- a/packages/hal/v85x/ceb_v850/current/src/plf_misc.c +++ b/packages/hal/v85x/ceb_v850/current/src/plf_misc.c @@ -53,6 +53,8 @@ #include <cyg/hal/hal_intr.h> // Interrupt handling #include <cyg/hal/v850_common.h> // Hardware definitions +#include <cyg/hal/hal_if.h> // ROM monitor interfaces + extern void show_hex4(unsigned long val); extern void show_hex1(unsigned long val); extern void show_8bit_reg(void *addr); @@ -62,6 +64,7 @@ void cyg_hal_platform_hardware_init(void) { int i; + hal_if_init(); // Initialize GDB[ROM]/eCos interfaces show_led(' '); show_led(' '); } @@ -224,6 +227,37 @@ show_led(int p) } } +void +FAIL(char *m) +{ + static char *fail_reason; + fail_reason = m; +#if 0 + while (1) { + show_led('~'); + show_hex4(m); + show_led('/'); + } +#else + diag_printf("FAIL: %s\n", m); +#endif +} + +void +ALERT(char *m) +{ + static char *alert_reason; + alert_reason = m; +#if 0 + show_led('~'); + show_led('~'); + show_hex4(m); + show_led('/'); +#else + diag_printf("ALERT: %s\n", m); +#endif +} + // // Clock support, using 16 bit timer TM1 //
