Mercurial > ecos-v3_0-branch
diff packages/hal/sh/edk/current/src/hal_diag.c @ 82:6736c52df507 ecos-sw-2000-04-14
Merge from eCos master repository on 2000-04-14-13:35:46-BST
| author | jlarmour |
|---|---|
| date | Tue, 18 Apr 2000 21:51:55 +0000 |
| parents | 2085233a121a |
| children | 5a0cc6c243a9 |
line wrap: on
line diff
--- a/packages/hal/sh/edk/current/src/hal_diag.c +++ b/packages/hal/sh/edk/current/src/hal_diag.c @@ -55,6 +55,20 @@ #include <cyg/hal/sh_sci.inl> +//----------------------------------------------------------------------------- + +#if defined(CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs) + +#define CYG_HAL_DIAG_GDB + +#elif defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS) + +#define CYG_HAL_DIAG_GDB + +#endif + +//----------------------------------------------------------------------------- + void hal_diag_init(void) { hal_sci_init_serial(); @@ -79,7 +93,7 @@ externC void cyg_hal_user_break(CYG_ADDR void hal_diag_write_char(char c) { - +#ifdef CYG_HAL_DIAG_GDB static char line[100]; static int pos = 0; @@ -149,8 +163,10 @@ hal_diag_write_char(char c) #else HAL_RESTORE_INTERRUPTS(old); #endif - } +#else // CYG_HAL_DIAG_GDB + hal_diag_write_char_serial(c); +#endif } //-----------------------------------------------------------------------------
