📄 sleep.h
字号:
/***************************************************************************** * * MODULE: Sleep.h * * COMPONENT: Sleep.h,v * * VERSION: ZB_1v10rc2_for_Jenie * * REVISION: 1.4 * * DATED: 2007/11/26 15:37:39 * * STATUS: Exp * * AUTHOR: Korwin * * DESCRIPTION: * Interface to sleep and context save/restore functions * * CHANGE HISTORY: * * Sleep.h,v * * * * * * LAST MODIFIED BY: gpfef * $Modtime: $ * **************************************************************************** * * This software is owned by Jennic and/or its supplier and is protected * under applicable copyright laws. All rights are reserved. We grant You, * and any third parties, a license to use this software solely and * exclusively on Jennic products. You, and any third parties must reproduce * the copyright and warranty notice and any other legend of ownership on * each copy or partial copy of the software. * * THIS SOFTWARE IS PROVIDED "AS IS". JENNIC MAKES NO WARRANTIES, WHETHER * EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, * ACCURACY OR LACK OF NEGLIGENCE. JENNIC SHALL NOT, IN ANY CIRCUMSTANCES, BE * LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, SPECIAL, * INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER. * * Copyright Jennic Ltd 2005, 2006. All rights reserved * ****************************************************************************/#ifndef __SLEEP_H#define __SLEEP_H#if defined __cplusplusextern "C" {#endif/****************************************************************************//*** Include Files ***//****************************************************************************//****************************************************************************//*** Macro Definitions ***//****************************************************************************//****************************************************************************//*** Type Definitions ***//****************************************************************************/typedef enum{ APP_WAKEUP_RESTORE = 1, APP_WAKEUP_START = 255}App_WakeupMode_e;/****************************************************************************//*** Exported Functions ***//****************************************************************************/PUBLIC void vAppSaveContexts(void);PUBLIC App_WakeupMode_e eAppRestoreContexts(void);PUBLIC void vAppGetContexts( bool_t (*pfbWrite) (uint16 u16Len, uint8* pu8Value));PUBLIC App_WakeupMode_e eAppSetContexts( bool_t (*pfbRead) (uint16 u16Len, uint8* pu8Value));/****************************************************************************//*** Exported Variables ***//****************************************************************************/#if defined __cplusplus}#endif#endif /* __SLEEP_H *//****************************************************************************//*** END OF FILE ***//****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -