Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

clock.h

Committer:
klauss
Date:
2015-04-30
Revision:
119:ee6a53069455
Child:
120:770f00554b1e

File content as of revision 119:ee6a53069455:

#ifndef __CLOCK_H__
#define __CLOCK_H__

#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "mbed.h"
#include "EthernetInterface.h"
#include "debug.h"
#include "locale.h"

extern time_t current_time;

extern UDPSocket clock_sock;

extern Endpoint clock_server;

extern Timer external_time;

const uint16_t EXTERNAL_TIME_REQUEST_WAIT_SECONDS = 10;//300;

int request_clock_to_server( void );

int check_clock( void );

int update_clock( void );

int init_clock ( void );

int clock_sock_reconnect ( void );

void print_clock ( uint8_t * buffer );

int show_clock ( void );
#endif