Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: parallelcpld.cpp
- Revision:
- 132:05cd37f7e007
- Parent:
- 126:1f90756250fb
--- a/parallelcpld.cpp Tue Jul 21 20:03:35 2015 +0000 +++ b/parallelcpld.cpp Tue Sep 01 17:21:11 2015 +0000 @@ -39,7 +39,7 @@ { if ( drop_entendi_pkg and ( buffer[ TYPE_PLACE ] == INVITE ) ) { - debug_msg( "Droped entendi pkg" ); + vz_debug ( "Droped entendi pkg" ); return; } @@ -80,12 +80,12 @@ } strcat ( str, "\n\r " ); - send_msg ( "%s", str ); + vz_printf ( "%s", str ); } - if ( debug_cb_tx ) send_msg ("H -> CBx :: ( %d, %d ) -- Type :: %d", ext, port, type ); + if ( debug_cb_tx ) vz_printf ("H -> CBx :: ( %d, %d ) -- Type :: %d", ext, port, type ); - if ( debug_sqn ) send_msg ("H -> CBx :: ( %d, %d ) -- Type :: %d -- seq_num :: %u", ext, port, type, cb_tx_buffer [ SEQ_NUM_PLACE ] ); + if ( debug_sqn ) vz_printf ("H -> CBx :: ( %d, %d ) -- Type :: %d -- seq_num :: %u", ext, port, type, cb_tx_buffer [ SEQ_NUM_PLACE ] ); } do_not_show_this_invite_pkg = false; @@ -96,9 +96,9 @@ delayed_pkg_to_cb++; - if( ret == 0x01 ) if( dparallel ) debug_msg("Error: Ring buffer fully charged"); + if( ret == 0x01 ) if( dparallel ) vz_debug ("Error: Ring buffer fully charged"); - if( ret == 0x00 ) if( dparallel ) debug_msg("Success : package queued -- on queue %u", rb->size ); + if( ret == 0x00 ) if( dparallel ) vz_debug ("Success : package queued -- on queue %u", rb->size ); } } @@ -128,7 +128,7 @@ void tx_buffer_ring_buffer_handler( void ){ if( ( rb->size != 0x00 ) && ( tx_clear == 1 ) ){ uint8_t * _rb_next = ring_buffer_get_next( rb ); - if( dparallel ) send_msg( "Ring Buffer less one -- remain %u", rb->size ); + if( dparallel ) vz_printf ( "Ring Buffer less one -- remain %u", rb->size ); send2callboxes( _rb_next ); } } \ No newline at end of file