Mercurial > ecos
changeset 1968:7ddd5ba45ee5
* src/hal_if.c Added missing declarations of tries when compiling
with CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0.
| author | asl |
|---|---|
| date | Wed, 27 Apr 2005 19:08:34 +0000 |
| parents | 79f47da882db |
| children | 161f7ed272df |
| files | packages/hal/common/current/ChangeLog packages/hal/common/current/src/hal_if.c |
| diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/common/current/ChangeLog +++ b/packages/hal/common/current/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Enrico Piria <epiria@libero.it> + + * src/hal_if.c Added missing declarations of tries when compiling + with CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0. + 2004-11-20 Andrew Lunn <andrew.lunn@ascom.ch> * tests/intr.c: Make the ISR call the DSR to make sure this works
--- a/packages/hal/common/current/src/hal_if.c +++ b/packages/hal/common/current/src/hal_if.c @@ -496,6 +496,10 @@ cyg_hal_diag_mangler_gdb_flush(void* __c { CYG_INTERRUPT_STATE old; hal_virtual_comm_table_t* __chan = CYGACC_CALL_IF_DEBUG_PROCS(); +#if CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0 + int tries = CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES; +#endif + // Nothing to do if mangler buffer is empty. if (__mangler_pos == 0) @@ -573,10 +577,6 @@ cyg_hal_diag_mangler_gdb_flush(void* __c static void cyg_hal_diag_mangler_gdb_putc(void* __ch_data, cyg_uint8 c) { -#if CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0 - int tries = CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES; -#endif - // No need to send CRs if( c == '\r' ) return;
