diff options
Diffstat (limited to 'inc/peripheral/rtl876x_io_dlps.h')
-rw-r--r-- | inc/peripheral/rtl876x_io_dlps.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/inc/peripheral/rtl876x_io_dlps.h b/inc/peripheral/rtl876x_io_dlps.h new file mode 100644 index 0000000..9a7c25c --- /dev/null +++ b/inc/peripheral/rtl876x_io_dlps.h @@ -0,0 +1,109 @@ +/** +********************************************************************************************************* +* Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved. +********************************************************************************************************* +* @file rtl876x_io_dlps.h +* @brief +* @details +* @author tifnan_ge +* @date 2015-05-18 +* @version v1.0 +* ********************************************************************************************************* +*/ + + +#ifndef _RTL876X_IO_DLPS_H_ +#define _RTL876X_IO_DLPS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "rtl876x.h" +#include "rtl876x_bitfields.h" +#include "board.h" + +#if (PLATFORM_SUPPORT_POWER_MANAGER == 0) +#include "dlps.h" +#endif + +/** @addtogroup IO Peripheral Drivers + * + * @defgroup IO_DLPS IO DLPS + * @brief IO DLPS dirver module + * \ingroup IO + * @{ + */ + +/** @defgroup IO_DLPS_Exported_Types IO DLPS Exported Types + * @{ + */ + +typedef void (*DLPS_IO_ExitDlpsCB)(void); +typedef void (*DLPS_IO_EnterDlpsCB)(void); + +/** End of group IO_DLPS_Exported_Types + * @} + */ + + + +/*============================================================================* + * Functions + *============================================================================*/ + + +/** @defgroup IO_DLPS_Exported_Functions IO DLPS Exported Functions + * @{ + */ + +/** + * @brief Register io restore function in dlps mode + * @param None + * @retval None + */ +extern void DLPS_IORegister(void); +#if USE_USER_DEFINE_DLPS_EXIT_CB + +extern DLPS_IO_ExitDlpsCB User_IO_ExitDlpsCB; + +/** + * @brief Rrgister user-defined exit dlps callback function + * @param func: user-defined callback functon. + * @retval None + */ +__STATIC_INLINE void DLPS_IORegUserDlpsExitCb(DLPS_IO_ExitDlpsCB func) +{ + User_IO_ExitDlpsCB = func; +} + +#endif /* USE_USER_DEFINE_DLPS_EXIT_CB */ + +#if USE_USER_DEFINE_DLPS_ENTER_CB + +extern DLPS_IO_EnterDlpsCB User_IO_EnterDlpsCB; + +/** + * @brief Rrgister user-defined enter dlps callback function + * @param func: user-defined callback functon. + * @retval None + */ +__STATIC_INLINE void DLPS_IORegUserDlpsEnterCb(DLPS_IO_EnterDlpsCB func) +{ + User_IO_EnterDlpsCB = func; +} + +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _RTL876X_IO_DLPS_H_ */ + +/** @} */ /* End of group IO_DLPS_Exported_Functions */ +/** @} */ /* End of group IO_DLPS */ + + +/******************* (C) COPYRIGHT 2015 Realtek Semiconductor *****END OF FILE****/ + |