embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosTimer.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
8 #ifndef RTOS_TIMER_HPP_
9 #define RTOS_TIMER_HPP_
10 
11 #include "Rtos.hpp"
12 
17 class RtosTimer {
18 private:
19  enum {
20  COUNTING = 0,
21  ELLAPSED,
22  INFINITE_TIMEOUT
23  } mState;
24 
25  Rtos::TICK mTimeout;
26 public:
27  void set(Rtos::TICK timeout);
28  bool isEllapsed();
29 };
30 
31 #endif /* RTOS_TIMER_HPP_ */
32