Realtime spectrogram for DISCO-F746NG. On-board MEMS microphone is used for input sound signal. リアルタイムスペクトログラム.入力:MEMSマイク

Dependencies:   F746_GUI F746_SAI_IO UIT_FFT_Real

Committer:
MikamiUitOpen
Date:
Mon Apr 10 13:43:07 2017 +0000
Revision:
6:b3885567877c
Parent:
4:c1beacfc42c7
7

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikamiUitOpen 4:c1beacfc42c7 1 /* mbed Microcontroller Library
MikamiUitOpen 4:c1beacfc42c7 2 * Copyright (c) 2006-2013 ARM Limited
MikamiUitOpen 4:c1beacfc42c7 3 *
MikamiUitOpen 4:c1beacfc42c7 4 * Licensed under the Apache License, Version 2.0 (the "License");
MikamiUitOpen 4:c1beacfc42c7 5 * you may not use this file except in compliance with the License.
MikamiUitOpen 4:c1beacfc42c7 6 * You may obtain a copy of the License at
MikamiUitOpen 4:c1beacfc42c7 7 *
MikamiUitOpen 4:c1beacfc42c7 8 * http://www.apache.org/licenses/LICENSE-2.0
MikamiUitOpen 4:c1beacfc42c7 9 *
MikamiUitOpen 4:c1beacfc42c7 10 * Unless required by applicable law or agreed to in writing, software
MikamiUitOpen 4:c1beacfc42c7 11 * distributed under the License is distributed on an "AS IS" BASIS,
MikamiUitOpen 4:c1beacfc42c7 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MikamiUitOpen 4:c1beacfc42c7 13 * See the License for the specific language governing permissions and
MikamiUitOpen 4:c1beacfc42c7 14 * limitations under the License.
MikamiUitOpen 4:c1beacfc42c7 15 */
MikamiUitOpen 4:c1beacfc42c7 16 #ifndef MBED_SLEEP_API_H
MikamiUitOpen 4:c1beacfc42c7 17 #define MBED_SLEEP_API_H
MikamiUitOpen 4:c1beacfc42c7 18
MikamiUitOpen 4:c1beacfc42c7 19 #include "device.h"
MikamiUitOpen 4:c1beacfc42c7 20
MikamiUitOpen 4:c1beacfc42c7 21 #if DEVICE_SLEEP
MikamiUitOpen 4:c1beacfc42c7 22
MikamiUitOpen 4:c1beacfc42c7 23 #ifdef __cplusplus
MikamiUitOpen 4:c1beacfc42c7 24 extern "C" {
MikamiUitOpen 4:c1beacfc42c7 25 #endif
MikamiUitOpen 4:c1beacfc42c7 26
MikamiUitOpen 4:c1beacfc42c7 27 /** Send the microcontroller to sleep
MikamiUitOpen 4:c1beacfc42c7 28 *
MikamiUitOpen 4:c1beacfc42c7 29 * The processor is setup ready for sleep, and sent to sleep using __WFI(). In this mode, the
MikamiUitOpen 4:c1beacfc42c7 30 * system clock to the core is stopped until a reset or an interrupt occurs. This eliminates
MikamiUitOpen 4:c1beacfc42c7 31 * dynamic power used by the processor, memory systems and buses. The processor, peripheral and
MikamiUitOpen 4:c1beacfc42c7 32 * memory state are maintained, and the peripherals continue to work and can generate interrupts.
MikamiUitOpen 4:c1beacfc42c7 33 *
MikamiUitOpen 4:c1beacfc42c7 34 * The processor can be woken up by any internal peripheral interrupt or external pin interrupt.
MikamiUitOpen 4:c1beacfc42c7 35 *
MikamiUitOpen 4:c1beacfc42c7 36 * @note
MikamiUitOpen 4:c1beacfc42c7 37 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored.
MikamiUitOpen 4:c1beacfc42c7 38 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
MikamiUitOpen 4:c1beacfc42c7 39 * able to access the LocalFileSystem
MikamiUitOpen 4:c1beacfc42c7 40 */
MikamiUitOpen 4:c1beacfc42c7 41 void sleep(void);
MikamiUitOpen 4:c1beacfc42c7 42
MikamiUitOpen 4:c1beacfc42c7 43 /** Send the microcontroller to deep sleep
MikamiUitOpen 4:c1beacfc42c7 44 *
MikamiUitOpen 4:c1beacfc42c7 45 * This processor is setup ready for deep sleep, and sent to sleep using __WFI(). This mode
MikamiUitOpen 4:c1beacfc42c7 46 * has the same sleep features as sleep plus it powers down peripherals and clocks. All state
MikamiUitOpen 4:c1beacfc42c7 47 * is still maintained.
MikamiUitOpen 4:c1beacfc42c7 48 *
MikamiUitOpen 4:c1beacfc42c7 49 * The processor can only be woken up by an external interrupt on a pin or a watchdog timer.
MikamiUitOpen 4:c1beacfc42c7 50 *
MikamiUitOpen 4:c1beacfc42c7 51 * @note
MikamiUitOpen 4:c1beacfc42c7 52 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored.
MikamiUitOpen 4:c1beacfc42c7 53 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
MikamiUitOpen 4:c1beacfc42c7 54 * able to access the LocalFileSystem
MikamiUitOpen 4:c1beacfc42c7 55 */
MikamiUitOpen 4:c1beacfc42c7 56 void deepsleep(void);
MikamiUitOpen 4:c1beacfc42c7 57
MikamiUitOpen 4:c1beacfc42c7 58 #ifdef __cplusplus
MikamiUitOpen 4:c1beacfc42c7 59 }
MikamiUitOpen 4:c1beacfc42c7 60 #endif
MikamiUitOpen 4:c1beacfc42c7 61
MikamiUitOpen 4:c1beacfc42c7 62 #endif
MikamiUitOpen 4:c1beacfc42c7 63
MikamiUitOpen 4:c1beacfc42c7 64 #endif