Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Committer:
klauss
Date:
Mon Oct 20 16:13:10 2014 +0000
Revision:
48:195c97f12e8e
Parent:
21:0bd688722e81
Child:
74:81c47fff88a5
versao em validacao

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 48:195c97f12e8e 9 char msg_[ 1024 ];
klauss 0:4d17cd9c8f9d 10
klauss 0:4d17cd9c8f9d 11 void debug_pkg( int size, uint8_t * pkg ){
Cola 21:0bd688722e81 12 if (debug_alive == 1){
Cola 21:0bd688722e81 13 static uint8_t i=0;
Cola 21:0bd688722e81 14 strcpy( debug_msg1, "Pkg " );
Cola 21:0bd688722e81 15 memcpy( debug_msg1+5, pkg, size );
Cola 21:0bd688722e81 16 debug_msg1[ 4 ] = i++;
Cola 21:0bd688722e81 17 debug.sendTo( debug_server, debug_msg1, size+5 );
Cola 21:0bd688722e81 18 }else
Cola 21:0bd688722e81 19 {}
klauss 0:4d17cd9c8f9d 20 }