Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Committer:
klauss
Date:
Thu Apr 23 21:53:28 2015 +0000
Revision:
117:e9facba9db27
Child:
119:ee6a53069455
merge dos fw contendo as funcionalidade de bootloader e o fw que estava em campo na ultima vistoria

Who changed what in which revision?

UserRevisionLine numberNew contents of line
klauss 117:e9facba9db27 1 #ifndef __BOOTLOADER_H__
klauss 117:e9facba9db27 2 #define __BOOTLOADER_H__
klauss 117:e9facba9db27 3
klauss 117:e9facba9db27 4 #include "mbed.h"
klauss 117:e9facba9db27 5 #include "debug.h"
klauss 117:e9facba9db27 6 #include "EthernetInterface.h"
klauss 117:e9facba9db27 7 #include "call_box.h"
klauss 117:e9facba9db27 8
klauss 117:e9facba9db27 9 #define BL_PORT 3000
klauss 117:e9facba9db27 10 #define BL_SIZE 260
klauss 117:e9facba9db27 11 #define UDP_BL_SIZE 262
klauss 117:e9facba9db27 12
klauss 117:e9facba9db27 13 extern Timer udp_bl_timer;
klauss 117:e9facba9db27 14 extern Endpoint udp_bl_server;
klauss 117:e9facba9db27 15 extern UDPSocket udp_bl_client;
klauss 117:e9facba9db27 16 extern char bl_recv_buffer[ UDP_BL_SIZE ],bl_send_buffer[ UDP_BL_SIZE ],bl_cbx_buffer[ BL_SIZE + 1 ];
klauss 117:e9facba9db27 17 extern uint16_t bl_peer,bl_port;
klauss 117:e9facba9db27 18 extern uint8_t bl_start_flag,bl_ts,next_pkg_ts0;
klauss 117:e9facba9db27 19 extern Call_Box * bl_cb;
klauss 117:e9facba9db27 20 extern uint8_t *bl_write_buffer;
klauss 117:e9facba9db27 21
klauss 117:e9facba9db27 22 #define init_bl() { \
klauss 117:e9facba9db27 23 udp_bl_client.set_blocking( false, 0 ); \
klauss 117:e9facba9db27 24 udp_bl_client.bind( BL_PORT ); \
klauss 117:e9facba9db27 25 }
klauss 117:e9facba9db27 26
klauss 117:e9facba9db27 27
klauss 117:e9facba9db27 28
klauss 117:e9facba9db27 29
klauss 117:e9facba9db27 30
klauss 117:e9facba9db27 31
klauss 117:e9facba9db27 32
klauss 117:e9facba9db27 33
klauss 117:e9facba9db27 34
klauss 117:e9facba9db27 35
klauss 117:e9facba9db27 36 #endif