Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/hal/sleep_api.h

    r352 r374  
    2828#endif
    2929
     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
    3066/** Send the microcontroller to sleep
    3167 *
    32  * The processor is setup ready for sleep, and sent to sleep using __WFI(). In this mode, the
     68 * The processor is setup ready for sleep, and sent to sleep. In this mode, the
    3369 * system clock to the core is stopped until a reset or an interrupt occurs. This eliminates
    3470 * dynamic power used by the processor, memory systems and buses. The processor, peripheral and
     
    3773 * The processor can be woken up by any internal peripheral interrupt or external pin interrupt.
    3874 *
    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 *
    4377 */
    4478void hal_sleep(void);
     
    4781 *
    4882 * 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.
     83 * has the same sleep features as sleep plus it powers down peripherals and high frequency clocks.
     84 * All state is still maintained.
    5185 *
    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.
    5387 *
    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.
    5889 */
    5990void hal_deepsleep(void);
     91
     92/**@}*/
    6093
    6194#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.