CoOS Demonstrator adapted to mbed Hardware.

Dependencies:   mbed

Committer:
ericebert
Date:
Fri Dec 03 19:45:30 2010 +0000
Revision:
0:57690853989a
Some basic LED-Flashing works in the CoOS-RTOS using Tasks

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ericebert 0:57690853989a 1 /**
ericebert 0:57690853989a 2 *******************************************************************************
ericebert 0:57690853989a 3 * @file utility.h
ericebert 0:57690853989a 4 * @version V1.1.3 Initial version
ericebert 0:57690853989a 5 * @date 2010.04.26
ericebert 0:57690853989a 6 * @brief Utility function header file
ericebert 0:57690853989a 7 * @details This file including some defines and declares related to utility
ericebert 0:57690853989a 8 * function.
ericebert 0:57690853989a 9 *******************************************************************************
ericebert 0:57690853989a 10 * @copy
ericebert 0:57690853989a 11 *
ericebert 0:57690853989a 12 * INTERNAL FILE,DON'T PUBLIC.
ericebert 0:57690853989a 13 *
ericebert 0:57690853989a 14 * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
ericebert 0:57690853989a 15 *******************************************************************************
ericebert 0:57690853989a 16 */
ericebert 0:57690853989a 17
ericebert 0:57690853989a 18
ericebert 0:57690853989a 19 #ifndef _UTILITY_H
ericebert 0:57690853989a 20 #define _UTILITY_H
ericebert 0:57690853989a 21
ericebert 0:57690853989a 22
ericebert 0:57690853989a 23 /**
ericebert 0:57690853989a 24 * @struct Time struct utility.h
ericebert 0:57690853989a 25 * @brief Time struct
ericebert 0:57690853989a 26 * @details This struct use to manage time
ericebert 0:57690853989a 27 */
ericebert 0:57690853989a 28 typedef struct SysTime
ericebert 0:57690853989a 29 {
ericebert 0:57690853989a 30 U8 sec; /*!< Second */
ericebert 0:57690853989a 31 U8 min; /*!< Minute */
ericebert 0:57690853989a 32 U8 hour; /*!< Hour */
ericebert 0:57690853989a 33 U8 date; /*!< Date */
ericebert 0:57690853989a 34 U8 month; /*!< Month */
ericebert 0:57690853989a 35 U16 year; /*!< Year */
ericebert 0:57690853989a 36 }TIME;
ericebert 0:57690853989a 37
ericebert 0:57690853989a 38 #endif
ericebert 0:57690853989a 39