1 /** mbed Microcontroller Library
2   ******************************************************************************
3   * @file    sleep.c
4   * @author
5   * @version V1.0.0
6   * @date    2016-08-01
7   * @brief   This file provides mbed API for SLEEP.
8   ******************************************************************************
9   * @attention
10   *
11   * This module is a confidential and proprietary property of RealTek and
12   * possession or use of this module requires written permission of RealTek.
13   *
14   * Copyright(c) 2016, Realtek Semiconductor Corporation. All rights reserved.
15   ******************************************************************************
16   */
17 #include "sleep_ex_api.h"
18 #include "cmsis.h"
19 
20 /** @addtogroup AmebaD_Mbed_API
21   * @{
22   */
23 
24 /** @defgroup MBED_SLEEP
25  *  @brief      MBED_SLEEP driver modules.
26  *  @{
27  */
28 
29 /** @defgroup MBED_SLEEP_Exported_Functions MBED_SLEEP Exported Functions
30   * @{
31   */
32 
33 /**
34   * @brief  AmebaD don't support sleep api, please refer to AN400 power save Section
35   */
sleep_ex(uint32_t wakeup_event,uint32_t sleep_duration)36 void sleep_ex(uint32_t wakeup_event,  uint32_t sleep_duration)
37 {
38 	/* To avoid gcc warnings */
39 	( void ) wakeup_event;
40 	( void ) sleep_duration;
41 
42 	assert_param(0);
43 }
44 
45 /**
46   * @brief  AmebaD don't support sleep api, please refer to AN400 power save Section
47   */
sleep_ex_selective(uint32_t wakeup_event,uint32_t sleep_duration,uint32_t clk_sourec_enable,uint32_t sdr_enable)48 void sleep_ex_selective(uint32_t wakeup_event,  uint32_t sleep_duration, uint32_t clk_sourec_enable, uint32_t sdr_enable)
49 {
50 	/* To avoid gcc warnings */
51 	( void ) wakeup_event;
52 	( void ) sleep_duration;
53 	( void ) clk_sourec_enable;
54 	( void ) sdr_enable;
55 
56 	assert_param(0);
57 }
58 
59 /**
60   * @brief  AmebaD don't support deep sleep api, please refer to AN400 power save Section
61   */
deepsleep_ex(uint32_t wakeup_event,uint32_t sleep_duration)62 void deepsleep_ex(uint32_t wakeup_event, uint32_t sleep_duration)
63 {
64 	/* To avoid gcc warnings */
65 	( void ) wakeup_event;
66 	( void ) sleep_duration;
67 
68 	assert_param(0);
69 }
70 
71 /**
72   * @brief  AmebaD don't support deep sleep api, please refer to AN400 power save Section
73   */
deepsleep_get_bootup_reason(void)74 int deepsleep_get_bootup_reason(void)
75 {
76 	assert_param(0);
77 	return 0;
78 }
79 /**
80   * @}
81   */
82 
83 /**
84   * @}
85   */
86 
87 /**
88   * @}
89   */
90 /******************* (C) COPYRIGHT 2016 Realtek Semiconductor *****END OF FILE****/
91