![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: main.cpp
- Revision:
- 27:98f824719d1c
- Parent:
- 26:725cbbedadd5
- Child:
- 28:94aec56c6329
diff -r 725cbbedadd5 -r 98f824719d1c main.cpp --- a/main.cpp Mon Sep 22 16:56:00 2014 +0000 +++ b/main.cpp Mon Sep 22 21:15:07 2014 +0000 @@ -157,7 +157,8 @@ }else type = __DO_NOTHING__; } //---------------------- - if( t.read() > 5 ){ + if( t.read() > 5 ){ + static int count = 0; for( register uint8_t i = 0; i < v_cb->size(); i++ ){ Call_Box * cb = ( Call_Box * )v_cb->get_element( i ); if (debug_alive){debug_msg(" Type :: %d -- Ext :: %d -- TimeSlice :: %d -- remain_timeslices :: %d :: v_call->size() :: %d :: Status :: %d :: SIP Status %d", type , cb->get_ext(), cb->get_timeslice(), ts->remain_timeslices(), v_call->size(), cb->status, cb->sip->status );} @@ -171,6 +172,12 @@ t.reset(); led3 = !led3; CAB_LED = !CAB_LED; + + if( count == 8 ){ + Call_Box * cb = new Call_Box( ext, port ); + cb->registry(); + } + count++; } //---------------------- switch( type ){