Changeset 374 for asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/hal/sleep_api.h
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/hal/sleep_api.h
r352 r374 28 28 #endif 29 29 30 /** 31 * \defgroup hal_sleep sleep hal requirements 32 * Low level interface to the sleep mode of a target. 33 * 34 * # Defined behaviour 35 * 36 * * Sleep mode 37 * * wake-up time should be less than 10 us - Verified by sleep_usticker_test(). 38 * * the processor can be woken up by any internal peripheral interrupt - Verified by sleep_usticker_test(). 39 * * all peripherals operate as in run mode - not verified. 40 * * the processor can be woken up by external pin interrupt - not verified. 41 * * Deep sleep 42 * * the wake-up time should be less than 10 ms - Verified by deepsleep_lpticker_test(). 43 * * lp ticker should wake up a target from this mode - Verified by deepsleep_lpticker_test(). 44 * * RTC should wake up a target from this mode - not verified. 45 * * an external interrupt on a pin should wake up a target from this mode - not verified. 46 * * a watchdog timer should wake up a target from this mode - not verified. 47 * * High-speed clocks are turned off - Verified by deepsleep_high_speed_clocks_turned_off_test(). 48 * * RTC keeps time - Verified by rtc_sleep_test(). 49 * 50 * # Undefined behaviour 51 * 52 * * peripherals aside from RTC, GPIO and lp ticker result in undefined behaviour in deep sleep. 53 * @{ 54 */ 55 56 /** 57 * \defgroup hal_sleep_tests sleep hal tests 58 * The sleep HAL tests ensure driver conformance to defined behaviour. 59 * 60 * To run the sleep hal tests use the command: 61 * 62 * mbed test -t <toolchain> -m <target> -n tests-mbed_hal-sleep* 63 * 64 */ 65 30 66 /** Send the microcontroller to sleep 31 67 * 32 * The processor is setup ready for sleep, and sent to sleep using __WFI(). In this mode, the68 * The processor is setup ready for sleep, and sent to sleep. In this mode, the 33 69 * system clock to the core is stopped until a reset or an interrupt occurs. This eliminates 34 70 * dynamic power used by the processor, memory systems and buses. The processor, peripheral and … … 37 73 * The processor can be woken up by any internal peripheral interrupt or external pin interrupt. 38 74 * 39 * @note 40 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored. 41 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be 42 * able to access the LocalFileSystem 75 * The wake-up time shall be less than 10 us. 76 * 43 77 */ 44 78 void hal_sleep(void); … … 47 81 * 48 82 * This processor is setup ready for deep sleep, and sent to sleep using __WFI(). This mode 49 * has the same sleep features as sleep plus it powers down peripherals and clocks. All state50 * is still maintained.83 * has the same sleep features as sleep plus it powers down peripherals and high frequency clocks. 84 * All state is still maintained. 51 85 * 52 * The processor can only be woken up by an external interrupt on a pin or a watchdog timer.86 * The processor can only be woken up by low power ticker, RTC, an external interrupt on a pin or a watchdog timer. 53 87 * 54 * @note 55 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored. 56 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be 57 * able to access the LocalFileSystem 88 * The wake-up time shall be less than 10 ms. 58 89 */ 59 90 void hal_deepsleep(void); 91 92 /**@}*/ 60 93 61 94 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.