Demo program for library named SD_PlayerSkeleton of SD card player skeleton. SD カードプレーヤのための骨組みとして使うためのライブラリ SD_PlayerSkeleton の使用例.このプログラムについては,CQ出版社インターフェース誌 2018年7月号で解説している.
Dependencies: F746_GUI F746_SAI_IO SD_PlayerSkeleton
mbed_src_STM32F7/hal/sleep_api.h@19:3c3833ec00d2, 2017-04-09 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Sun Apr 09 12:44:17 2017 +0000
- Revision:
- 19:3c3833ec00d2
- Parent:
- 2:cf42e62a97dc
20
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MikamiUitOpen | 2:cf42e62a97dc | 1 | /* mbed Microcontroller Library |
MikamiUitOpen | 2:cf42e62a97dc | 2 | * Copyright (c) 2006-2013 ARM Limited |
MikamiUitOpen | 2:cf42e62a97dc | 3 | * |
MikamiUitOpen | 2:cf42e62a97dc | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
MikamiUitOpen | 2:cf42e62a97dc | 5 | * you may not use this file except in compliance with the License. |
MikamiUitOpen | 2:cf42e62a97dc | 6 | * You may obtain a copy of the License at |
MikamiUitOpen | 2:cf42e62a97dc | 7 | * |
MikamiUitOpen | 2:cf42e62a97dc | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
MikamiUitOpen | 2:cf42e62a97dc | 9 | * |
MikamiUitOpen | 2:cf42e62a97dc | 10 | * Unless required by applicable law or agreed to in writing, software |
MikamiUitOpen | 2:cf42e62a97dc | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
MikamiUitOpen | 2:cf42e62a97dc | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
MikamiUitOpen | 2:cf42e62a97dc | 13 | * See the License for the specific language governing permissions and |
MikamiUitOpen | 2:cf42e62a97dc | 14 | * limitations under the License. |
MikamiUitOpen | 2:cf42e62a97dc | 15 | */ |
MikamiUitOpen | 2:cf42e62a97dc | 16 | #ifndef MBED_SLEEP_API_H |
MikamiUitOpen | 2:cf42e62a97dc | 17 | #define MBED_SLEEP_API_H |
MikamiUitOpen | 2:cf42e62a97dc | 18 | |
MikamiUitOpen | 2:cf42e62a97dc | 19 | #include "device.h" |
MikamiUitOpen | 2:cf42e62a97dc | 20 | |
MikamiUitOpen | 2:cf42e62a97dc | 21 | #if DEVICE_SLEEP |
MikamiUitOpen | 2:cf42e62a97dc | 22 | |
MikamiUitOpen | 2:cf42e62a97dc | 23 | #ifdef __cplusplus |
MikamiUitOpen | 2:cf42e62a97dc | 24 | extern "C" { |
MikamiUitOpen | 2:cf42e62a97dc | 25 | #endif |
MikamiUitOpen | 2:cf42e62a97dc | 26 | |
MikamiUitOpen | 2:cf42e62a97dc | 27 | /** Send the microcontroller to sleep |
MikamiUitOpen | 2:cf42e62a97dc | 28 | * |
MikamiUitOpen | 2:cf42e62a97dc | 29 | * The processor is setup ready for sleep, and sent to sleep using __WFI(). In this mode, the |
MikamiUitOpen | 2:cf42e62a97dc | 30 | * system clock to the core is stopped until a reset or an interrupt occurs. This eliminates |
MikamiUitOpen | 2:cf42e62a97dc | 31 | * dynamic power used by the processor, memory systems and buses. The processor, peripheral and |
MikamiUitOpen | 2:cf42e62a97dc | 32 | * memory state are maintained, and the peripherals continue to work and can generate interrupts. |
MikamiUitOpen | 2:cf42e62a97dc | 33 | * |
MikamiUitOpen | 2:cf42e62a97dc | 34 | * The processor can be woken up by any internal peripheral interrupt or external pin interrupt. |
MikamiUitOpen | 2:cf42e62a97dc | 35 | * |
MikamiUitOpen | 2:cf42e62a97dc | 36 | * @note |
MikamiUitOpen | 2:cf42e62a97dc | 37 | * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored. |
MikamiUitOpen | 2:cf42e62a97dc | 38 | * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be |
MikamiUitOpen | 2:cf42e62a97dc | 39 | * able to access the LocalFileSystem |
MikamiUitOpen | 2:cf42e62a97dc | 40 | */ |
MikamiUitOpen | 2:cf42e62a97dc | 41 | void sleep(void); |
MikamiUitOpen | 2:cf42e62a97dc | 42 | |
MikamiUitOpen | 2:cf42e62a97dc | 43 | /** Send the microcontroller to deep sleep |
MikamiUitOpen | 2:cf42e62a97dc | 44 | * |
MikamiUitOpen | 2:cf42e62a97dc | 45 | * This processor is setup ready for deep sleep, and sent to sleep using __WFI(). This mode |
MikamiUitOpen | 2:cf42e62a97dc | 46 | * has the same sleep features as sleep plus it powers down peripherals and clocks. All state |
MikamiUitOpen | 2:cf42e62a97dc | 47 | * is still maintained. |
MikamiUitOpen | 2:cf42e62a97dc | 48 | * |
MikamiUitOpen | 2:cf42e62a97dc | 49 | * The processor can only be woken up by an external interrupt on a pin or a watchdog timer. |
MikamiUitOpen | 2:cf42e62a97dc | 50 | * |
MikamiUitOpen | 2:cf42e62a97dc | 51 | * @note |
MikamiUitOpen | 2:cf42e62a97dc | 52 | * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored. |
MikamiUitOpen | 2:cf42e62a97dc | 53 | * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be |
MikamiUitOpen | 2:cf42e62a97dc | 54 | * able to access the LocalFileSystem |
MikamiUitOpen | 2:cf42e62a97dc | 55 | */ |
MikamiUitOpen | 2:cf42e62a97dc | 56 | void deepsleep(void); |
MikamiUitOpen | 2:cf42e62a97dc | 57 | |
MikamiUitOpen | 2:cf42e62a97dc | 58 | #ifdef __cplusplus |
MikamiUitOpen | 2:cf42e62a97dc | 59 | } |
MikamiUitOpen | 2:cf42e62a97dc | 60 | #endif |
MikamiUitOpen | 2:cf42e62a97dc | 61 | |
MikamiUitOpen | 2:cf42e62a97dc | 62 | #endif |
MikamiUitOpen | 2:cf42e62a97dc | 63 | |
MikamiUitOpen | 2:cf42e62a97dc | 64 | #endif |