voltando a versao de n aberturas e fechamentos de sockets

Dependencies:   EthernetInterface NTPClient mbed-rtos_old mbed

Fork of header_main_public by VZTECH

timeslice.h

Committer:
klauss
Date:
2014-09-19
Revision:
18:01a93677e40c
Parent:
0:4d17cd9c8f9d

File content as of revision 18:01a93677e40c:

#include <stdint.h>

#define __MAX_TIMESLICES__ 4

class Timeslice{
    private :
        uint8_t timeslice[ __MAX_TIMESLICES__ ];
    public :
        Timeslice();
        ~Timeslice();
        uint8_t get_timeslice();
        void return_timeslice( uint8_t i );
        void reset();
        uint8_t remain_timeslices( void );
};