Quick and dirty CoOS + LWIP ( Webserver )

Dependencies:   mbed lwip

Committer:
astroboy
Date:
Sat Sep 10 22:41:10 2011 +0000
Revision:
0:94897d537b31

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
astroboy 0:94897d537b31 1 /**
astroboy 0:94897d537b31 2 *******************************************************************************
astroboy 0:94897d537b31 3 * @file OsTimer.h
astroboy 0:94897d537b31 4 * @version V1.1.4
astroboy 0:94897d537b31 5 * @date 2011.04.20
astroboy 0:94897d537b31 6 * @brief Timer manage header file
astroboy 0:94897d537b31 7 * @details This file including some declares and defines related to timer
astroboy 0:94897d537b31 8 * management.
astroboy 0:94897d537b31 9 *******************************************************************************
astroboy 0:94897d537b31 10 * @copy
astroboy 0:94897d537b31 11 *
astroboy 0:94897d537b31 12 * INTERNAL FILE,DON'T PUBLIC.
astroboy 0:94897d537b31 13 *
astroboy 0:94897d537b31 14 * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
astroboy 0:94897d537b31 15 *******************************************************************************
astroboy 0:94897d537b31 16 */
astroboy 0:94897d537b31 17
astroboy 0:94897d537b31 18 #ifndef _TIMER_H
astroboy 0:94897d537b31 19 #define _TIMER_H
astroboy 0:94897d537b31 20
astroboy 0:94897d537b31 21 #define TMR_STATE_RUNNING 0 /*!< Timer State: Running */
astroboy 0:94897d537b31 22 #define TMR_STATE_STOPPED 1 /*!< Timer State: Stopped */
astroboy 0:94897d537b31 23
astroboy 0:94897d537b31 24 /**
astroboy 0:94897d537b31 25 * @struct tmrCtrl timer.h
astroboy 0:94897d537b31 26 * @brief Timer control block
astroboy 0:94897d537b31 27 * @details This struct is use to manage user timer.
astroboy 0:94897d537b31 28 *
astroboy 0:94897d537b31 29 */
astroboy 0:94897d537b31 30 typedef struct tmrCtrl /* Timer Control Block Define. */
astroboy 0:94897d537b31 31 {
astroboy 0:94897d537b31 32 OS_TCID tmrID; /*!< Timer ID. */
astroboy 0:94897d537b31 33 U8 tmrType; /*!< Timer Type. */
astroboy 0:94897d537b31 34 U8 tmrState; /*!< Timer State. */
astroboy 0:94897d537b31 35 U32 tmrCnt; /*!< Timer Counter. */
astroboy 0:94897d537b31 36 U32 tmrReload; /*!< Timer Reload Counter Value. */
astroboy 0:94897d537b31 37 vFUNCPtr tmrCallBack; /*!< Call-back Function When Timer overrun. */
astroboy 0:94897d537b31 38 struct tmrCtrl* tmrNext; /*!< Point to Next Timer Control Block. */
astroboy 0:94897d537b31 39 struct tmrCtrl* tmrPrev; /*!< Point to Previous Timer Control Block*/
astroboy 0:94897d537b31 40
astroboy 0:94897d537b31 41 }TmrCtrl,*P_TmrCtrl;
astroboy 0:94897d537b31 42
astroboy 0:94897d537b31 43 /*---------------------------- Variable declare ------------------------------*/
astroboy 0:94897d537b31 44 extern P_TmrCtrl TmrList; /*!< A pointer to the timer list. */
astroboy 0:94897d537b31 45 extern U32 TmrIDVessel;
astroboy 0:94897d537b31 46 /*---------------------------- Function declare ------------------------------*/
astroboy 0:94897d537b31 47 extern void TmrDispose(void); /*!< Timer counter function. */
astroboy 0:94897d537b31 48 extern void isr_TmrDispose(void);
astroboy 0:94897d537b31 49 #endif