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/hal/gpio_irq_api.h@4:c1beacfc42c7, 2016-10-02 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Sun Oct 02 10:51:10 2016 +0000
- Revision:
- 4:c1beacfc42c7
5
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) 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_GPIO_IRQ_API_H |
MikamiUitOpen | 4:c1beacfc42c7 | 17 | #define MBED_GPIO_IRQ_API_H |
MikamiUitOpen | 4:c1beacfc42c7 | 18 | |
MikamiUitOpen | 4:c1beacfc42c7 | 19 | #include "device.h" |
MikamiUitOpen | 4:c1beacfc42c7 | 20 | |
MikamiUitOpen | 4:c1beacfc42c7 | 21 | #if DEVICE_INTERRUPTIN |
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 | typedef enum { |
MikamiUitOpen | 4:c1beacfc42c7 | 28 | IRQ_NONE, |
MikamiUitOpen | 4:c1beacfc42c7 | 29 | IRQ_RISE, |
MikamiUitOpen | 4:c1beacfc42c7 | 30 | IRQ_FALL |
MikamiUitOpen | 4:c1beacfc42c7 | 31 | } gpio_irq_event; |
MikamiUitOpen | 4:c1beacfc42c7 | 32 | |
MikamiUitOpen | 4:c1beacfc42c7 | 33 | typedef struct gpio_irq_s gpio_irq_t; |
MikamiUitOpen | 4:c1beacfc42c7 | 34 | |
MikamiUitOpen | 4:c1beacfc42c7 | 35 | typedef void (*gpio_irq_handler)(uint32_t id, gpio_irq_event event); |
MikamiUitOpen | 4:c1beacfc42c7 | 36 | |
MikamiUitOpen | 4:c1beacfc42c7 | 37 | int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32_t id); |
MikamiUitOpen | 4:c1beacfc42c7 | 38 | void gpio_irq_free(gpio_irq_t *obj); |
MikamiUitOpen | 4:c1beacfc42c7 | 39 | void gpio_irq_set (gpio_irq_t *obj, gpio_irq_event event, uint32_t enable); |
MikamiUitOpen | 4:c1beacfc42c7 | 40 | void gpio_irq_enable(gpio_irq_t *obj); |
MikamiUitOpen | 4:c1beacfc42c7 | 41 | void gpio_irq_disable(gpio_irq_t *obj); |
MikamiUitOpen | 4:c1beacfc42c7 | 42 | |
MikamiUitOpen | 4:c1beacfc42c7 | 43 | #ifdef __cplusplus |
MikamiUitOpen | 4:c1beacfc42c7 | 44 | } |
MikamiUitOpen | 4:c1beacfc42c7 | 45 | #endif |
MikamiUitOpen | 4:c1beacfc42c7 | 46 | |
MikamiUitOpen | 4:c1beacfc42c7 | 47 | #endif |
MikamiUitOpen | 4:c1beacfc42c7 | 48 | |
MikamiUitOpen | 4:c1beacfc42c7 | 49 | #endif |