@@ -29,32 +29,27 @@ extern "C" {
29
29
30
30
/** Send the microcontroller to sleep
31
31
*
32
- * The processor is setup ready for sleep, and sent to sleep using __WFI() . In this mode, the
32
+ * The processor is setup ready for sleep, and sent to sleep. In this mode, the
33
33
* system clock to the core is stopped until a reset or an interrupt occurs. This eliminates
34
34
* dynamic power used by the processor, memory systems and buses. The processor, peripheral and
35
35
* memory state are maintained, and the peripherals continue to work and can generate interrupts.
36
36
*
37
37
* The processor can be woken up by any internal peripheral interrupt or external pin interrupt.
38
38
*
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
39
+ * The wake-up time shall be less than 10 us.
40
+ *
43
41
*/
44
42
void hal_sleep (void );
45
43
46
44
/** Send the microcontroller to deep sleep
47
45
*
48
46
* 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 state
50
- * is still maintained.
47
+ * has the same sleep features as sleep plus it powers down peripherals and high frequency clocks.
48
+ * All state is still maintained.
51
49
*
52
- * The processor can only be woken up by an external interrupt on a pin or a watchdog timer.
50
+ * The processor can only be woken up by low power ticker, RTC, an external interrupt on a pin or a watchdog timer.
53
51
*
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
52
+ * The wake-up time shall be less than 10 ms.
58
53
*/
59
54
void hal_deepsleep (void );
60
55
0 commit comments