![](/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
flood.cpp
- Committer:
- klauss
- Date:
- 2015-04-07
- Revision:
- 109:a5b8264ffbbc
- Parent:
- 105:a930035b6556
- Child:
- 113:db67ae00550e
File content as of revision 109:a5b8264ffbbc:
#include "flood.h" uint8_t pflood = 0; Timer tflood; int floodcount = 0; void flood (){ if( tflood.read_us() > floodcount ){ while( tflood.read_us() > floodcount ){ floodcount += 20000; } uint8_t Bflood[300]; uint8_t j; static uint8_t flood_start =0; j = flood_start; for (int i = 0; i < 300; i++) { Bflood[i] = j++; } flood_start++; Bflood[6] = 0x40; send2callboxes( Bflood ); if( debug_uart3 ) pc.printf("F"); if( tcp_session ){ tcp_client.send_all( "F", strlen( "F" ) ); } } }