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
mbed_src_STM32F7/api/LowPowerTicker.h@6:b3885567877c, 2017-04-10 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Mon Apr 10 13:43:07 2017 +0000
- Revision:
- 6:b3885567877c
- Parent:
- 4:c1beacfc42c7
7
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MikamiUitOpen | 4:c1beacfc42c7 | 1 | /* mbed Microcontroller Library |
MikamiUitOpen | 4:c1beacfc42c7 | 2 | * Copyright (c) 2015 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_LOWPOWERTICKER_H |
MikamiUitOpen | 4:c1beacfc42c7 | 17 | #define MBED_LOWPOWERTICKER_H |
MikamiUitOpen | 4:c1beacfc42c7 | 18 | |
MikamiUitOpen | 4:c1beacfc42c7 | 19 | #include "platform.h" |
MikamiUitOpen | 4:c1beacfc42c7 | 20 | #include "Ticker.h" |
MikamiUitOpen | 4:c1beacfc42c7 | 21 | |
MikamiUitOpen | 4:c1beacfc42c7 | 22 | #if DEVICE_LOWPOWERTIMER |
MikamiUitOpen | 4:c1beacfc42c7 | 23 | |
MikamiUitOpen | 4:c1beacfc42c7 | 24 | #include "lp_ticker_api.h" |
MikamiUitOpen | 4:c1beacfc42c7 | 25 | |
MikamiUitOpen | 4:c1beacfc42c7 | 26 | namespace mbed { |
MikamiUitOpen | 4:c1beacfc42c7 | 27 | |
MikamiUitOpen | 4:c1beacfc42c7 | 28 | /** Low Power Ticker |
MikamiUitOpen | 4:c1beacfc42c7 | 29 | */ |
MikamiUitOpen | 4:c1beacfc42c7 | 30 | class LowPowerTicker : public Ticker { |
MikamiUitOpen | 4:c1beacfc42c7 | 31 | |
MikamiUitOpen | 4:c1beacfc42c7 | 32 | public: |
MikamiUitOpen | 4:c1beacfc42c7 | 33 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { |
MikamiUitOpen | 4:c1beacfc42c7 | 34 | } |
MikamiUitOpen | 4:c1beacfc42c7 | 35 | |
MikamiUitOpen | 4:c1beacfc42c7 | 36 | virtual ~LowPowerTicker() { |
MikamiUitOpen | 4:c1beacfc42c7 | 37 | } |
MikamiUitOpen | 4:c1beacfc42c7 | 38 | }; |
MikamiUitOpen | 4:c1beacfc42c7 | 39 | |
MikamiUitOpen | 4:c1beacfc42c7 | 40 | } // namespace mbed |
MikamiUitOpen | 4:c1beacfc42c7 | 41 | |
MikamiUitOpen | 4:c1beacfc42c7 | 42 | #endif |
MikamiUitOpen | 4:c1beacfc42c7 | 43 | |
MikamiUitOpen | 4:c1beacfc42c7 | 44 | #endif |