Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Committer:
Cola
Date:
Sat Sep 20 20:28:24 2014 +0000
Revision:
21:0bd688722e81
Parent:
8:e3bfe62a477e
Child:
48:195c97f12e8e
20-09-14

Who changed what in which revision?

UserRevisionLine numberNew contents of line
klauss 0:4d17cd9c8f9d 1 #include "debug.h"
klauss 0:4d17cd9c8f9d 2 #include "string.h"
Cola 21:0bd688722e81 3 #include "prompt.h"
klauss 0:4d17cd9c8f9d 4
klauss 0:4d17cd9c8f9d 5 UDPSocket debug;
klauss 0:4d17cd9c8f9d 6 Endpoint debug_server;
klauss 0:4d17cd9c8f9d 7 char debug_msg1[ 1024+64 ];
klauss 0:4d17cd9c8f9d 8 char debug_msg2[ 1024 ];
klauss 0:4d17cd9c8f9d 9
klauss 0:4d17cd9c8f9d 10 void debug_pkg( int size, uint8_t * pkg ){
Cola 21:0bd688722e81 11 if (debug_alive == 1){
Cola 21:0bd688722e81 12 static uint8_t i=0;
Cola 21:0bd688722e81 13 strcpy( debug_msg1, "Pkg " );
Cola 21:0bd688722e81 14 memcpy( debug_msg1+5, pkg, size );
Cola 21:0bd688722e81 15 debug_msg1[ 4 ] = i++;
Cola 21:0bd688722e81 16 debug.sendTo( debug_server, debug_msg1, size+5 );
Cola 21:0bd688722e81 17 }else
Cola 21:0bd688722e81 18 {}
klauss 0:4d17cd9c8f9d 19 }