electronix79
/
CoOS_mbed
CooCox 1.1.4 on mbed with simple blinky example
Embed:
(wiki syntax)
Show/hide line numbers
hook.c
Go to the documentation of this file.
00001 /** 00002 ******************************************************************************* 00003 * @file hook.c 00004 * @version V1.1.4 00005 * @date 2011.04.20 00006 * @brief hook management implementation code of CooCox CoOS kernel. 00007 ******************************************************************************* 00008 * @copy 00009 * 00010 * INTERNAL FILE,DON'T PUBLIC. 00011 * 00012 * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> 00013 ******************************************************************************* 00014 */ 00015 00016 00017 /*---------------------------- Inlcude --------------------------------------*/ 00018 #include <coocox.h> 00019 00020 /** 00021 ******************************************************************************* 00022 * @brief IDLE task of OS 00023 * @param[in] pdata The parameter passed to IDLE task. 00024 * @param[out] None 00025 * @retval None 00026 * 00027 * @par Description 00028 * @details This function is system IDLE task code. 00029 ******************************************************************************* 00030 */ 00031 void CoIdleTask(void* pdata) 00032 { 00033 /* Add your codes here */ 00034 for(; ;) 00035 { 00036 /* Add your codes here */ 00037 } 00038 } 00039 00040 00041 /** 00042 ******************************************************************************* 00043 * @brief Hook for stack overflow 00044 * @param[in] taskID Piont to the task which lead to stack overflow. 00045 * @param[out] None 00046 * @retval None 00047 * 00048 * @par Description 00049 * @details This function is a hook for stack overflow. 00050 ******************************************************************************* 00051 */ 00052 void CoStkOverflowHook(OS_TID taskID) 00053 { 00054 /* Process stack overflow here */ 00055 for(; ;) 00056 { 00057 00058 } 00059 } 00060 00061 00062 00063 00064 00065
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2