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 hook.c
astroboy 0:94897d537b31 4 * @version V1.1.4
astroboy 0:94897d537b31 5 * @date 2011.04.20
astroboy 0:94897d537b31 6 * @brief hook management implementation code of CooCox CoOS kernel.
astroboy 0:94897d537b31 7 *******************************************************************************
astroboy 0:94897d537b31 8 * @copy
astroboy 0:94897d537b31 9 *
astroboy 0:94897d537b31 10 * INTERNAL FILE,DON'T PUBLIC.
astroboy 0:94897d537b31 11 *
astroboy 0:94897d537b31 12 * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
astroboy 0:94897d537b31 13 *******************************************************************************
astroboy 0:94897d537b31 14 */
astroboy 0:94897d537b31 15
astroboy 0:94897d537b31 16
astroboy 0:94897d537b31 17 /*---------------------------- Inlcude --------------------------------------*/
astroboy 0:94897d537b31 18 #include <coocox.h>
astroboy 0:94897d537b31 19
astroboy 0:94897d537b31 20 /**
astroboy 0:94897d537b31 21 *******************************************************************************
astroboy 0:94897d537b31 22 * @brief IDLE task of OS
astroboy 0:94897d537b31 23 * @param[in] pdata The parameter passed to IDLE task.
astroboy 0:94897d537b31 24 * @param[out] None
astroboy 0:94897d537b31 25 * @retval None
astroboy 0:94897d537b31 26 *
astroboy 0:94897d537b31 27 * @par Description
astroboy 0:94897d537b31 28 * @details This function is system IDLE task code.
astroboy 0:94897d537b31 29 *******************************************************************************
astroboy 0:94897d537b31 30 */
astroboy 0:94897d537b31 31 void CoIdleTask(void* pdata)
astroboy 0:94897d537b31 32 {
astroboy 0:94897d537b31 33 /* Add your codes here */
astroboy 0:94897d537b31 34 for(; ;)
astroboy 0:94897d537b31 35 {
astroboy 0:94897d537b31 36 /* Add your codes here */
astroboy 0:94897d537b31 37 }
astroboy 0:94897d537b31 38 }
astroboy 0:94897d537b31 39
astroboy 0:94897d537b31 40
astroboy 0:94897d537b31 41 /**
astroboy 0:94897d537b31 42 *******************************************************************************
astroboy 0:94897d537b31 43 * @brief Hook for stack overflow
astroboy 0:94897d537b31 44 * @param[in] taskID Piont to the task which lead to stack overflow.
astroboy 0:94897d537b31 45 * @param[out] None
astroboy 0:94897d537b31 46 * @retval None
astroboy 0:94897d537b31 47 *
astroboy 0:94897d537b31 48 * @par Description
astroboy 0:94897d537b31 49 * @details This function is a hook for stack overflow.
astroboy 0:94897d537b31 50 *******************************************************************************
astroboy 0:94897d537b31 51 */
astroboy 0:94897d537b31 52 void CoStkOverflowHook(OS_TID taskID)
astroboy 0:94897d537b31 53 {
astroboy 0:94897d537b31 54 /* Process stack overflow here */
astroboy 0:94897d537b31 55 for(; ;)
astroboy 0:94897d537b31 56 {
astroboy 0:94897d537b31 57
astroboy 0:94897d537b31 58 }
astroboy 0:94897d537b31 59 }
astroboy 0:94897d537b31 60
astroboy 0:94897d537b31 61
astroboy 0:94897d537b31 62
astroboy 0:94897d537b31 63
astroboy 0:94897d537b31 64
astroboy 0:94897d537b31 65