![](/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: flood.cpp
- Revision:
- 21:0bd688722e81
- Child:
- 29:7246460b73f8
diff -r 2d6ab23956e5 -r 0bd688722e81 flood.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flood.cpp Sat Sep 20 20:28:24 2014 +0000 @@ -0,0 +1,32 @@ +#include "mbed.h" +#include "flood.h" +#include "parallelcpld.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; + xmemcpy(TXBuffer, Bflood, 300); + + send2callboxes(); + pc.printf("F"); + } +} \ No newline at end of file