Audio singal input and output example for DISCO-F746. Input: MEMS mic, Output: CN10 OUT, Acoustic effect: echo and frequency shift. DISCO-F746 によるオーディオ信号入出力.入力:MEMS マイク,出力:CN10 OUT,音響効果:エコー,周波数変換.

Dependencies:   F746_GUI F746_SAI_IO

Committer:
MikamiUitOpen
Date:
Mon Apr 10 13:44:13 2017 +0000
Revision:
10:56f2f01df983
Parent:
6:38f7dce055d0
11

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikamiUitOpen 6:38f7dce055d0 1 /* mbed Microcontroller Library
MikamiUitOpen 6:38f7dce055d0 2 * Copyright (c) 2006-2013 ARM Limited
MikamiUitOpen 6:38f7dce055d0 3 *
MikamiUitOpen 6:38f7dce055d0 4 * Licensed under the Apache License, Version 2.0 (the "License");
MikamiUitOpen 6:38f7dce055d0 5 * you may not use this file except in compliance with the License.
MikamiUitOpen 6:38f7dce055d0 6 * You may obtain a copy of the License at
MikamiUitOpen 6:38f7dce055d0 7 *
MikamiUitOpen 6:38f7dce055d0 8 * http://www.apache.org/licenses/LICENSE-2.0
MikamiUitOpen 6:38f7dce055d0 9 *
MikamiUitOpen 6:38f7dce055d0 10 * Unless required by applicable law or agreed to in writing, software
MikamiUitOpen 6:38f7dce055d0 11 * distributed under the License is distributed on an "AS IS" BASIS,
MikamiUitOpen 6:38f7dce055d0 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MikamiUitOpen 6:38f7dce055d0 13 * See the License for the specific language governing permissions and
MikamiUitOpen 6:38f7dce055d0 14 * limitations under the License.
MikamiUitOpen 6:38f7dce055d0 15 */
MikamiUitOpen 6:38f7dce055d0 16 #ifndef MBED_ERROR_H
MikamiUitOpen 6:38f7dce055d0 17 #define MBED_ERROR_H
MikamiUitOpen 6:38f7dce055d0 18
MikamiUitOpen 6:38f7dce055d0 19 /** To generate a fatal compile-time error, you can use the pre-processor #error directive.
MikamiUitOpen 6:38f7dce055d0 20 *
MikamiUitOpen 6:38f7dce055d0 21 * @code
MikamiUitOpen 6:38f7dce055d0 22 * #error "That shouldn't have happened!"
MikamiUitOpen 6:38f7dce055d0 23 * @endcode
MikamiUitOpen 6:38f7dce055d0 24 *
MikamiUitOpen 6:38f7dce055d0 25 * If the compiler evaluates this line, it will report the error and stop the compile.
MikamiUitOpen 6:38f7dce055d0 26 *
MikamiUitOpen 6:38f7dce055d0 27 * For example, you could use this to check some user-defined compile-time variables:
MikamiUitOpen 6:38f7dce055d0 28 *
MikamiUitOpen 6:38f7dce055d0 29 * @code
MikamiUitOpen 6:38f7dce055d0 30 * #define NUM_PORTS 7
MikamiUitOpen 6:38f7dce055d0 31 * #if (NUM_PORTS > 4)
MikamiUitOpen 6:38f7dce055d0 32 * #error "NUM_PORTS must be less than 4"
MikamiUitOpen 6:38f7dce055d0 33 * #endif
MikamiUitOpen 6:38f7dce055d0 34 * @endcode
MikamiUitOpen 6:38f7dce055d0 35 *
MikamiUitOpen 6:38f7dce055d0 36 * Reporting Run-Time Errors:
MikamiUitOpen 6:38f7dce055d0 37 * To generate a fatal run-time error, you can use the mbed error() function.
MikamiUitOpen 6:38f7dce055d0 38 *
MikamiUitOpen 6:38f7dce055d0 39 * @code
MikamiUitOpen 6:38f7dce055d0 40 * error("That shouldn't have happened!");
MikamiUitOpen 6:38f7dce055d0 41 * @endcode
MikamiUitOpen 6:38f7dce055d0 42 *
MikamiUitOpen 6:38f7dce055d0 43 * If the mbed running the program executes this function, it will print the
MikamiUitOpen 6:38f7dce055d0 44 * message via the USB serial port, and then die with the blue lights of death!
MikamiUitOpen 6:38f7dce055d0 45 *
MikamiUitOpen 6:38f7dce055d0 46 * The message can use printf-style formatting, so you can report variables in the
MikamiUitOpen 6:38f7dce055d0 47 * message too. For example, you could use this to check a run-time condition:
MikamiUitOpen 6:38f7dce055d0 48 *
MikamiUitOpen 6:38f7dce055d0 49 * @code
MikamiUitOpen 6:38f7dce055d0 50 * if(x >= 5) {
MikamiUitOpen 6:38f7dce055d0 51 * error("expected x to be less than 5, but got %d", x);
MikamiUitOpen 6:38f7dce055d0 52 * }
MikamiUitOpen 6:38f7dce055d0 53 * #endcode
MikamiUitOpen 6:38f7dce055d0 54 */
MikamiUitOpen 6:38f7dce055d0 55
MikamiUitOpen 6:38f7dce055d0 56 #ifdef __cplusplus
MikamiUitOpen 6:38f7dce055d0 57 extern "C" {
MikamiUitOpen 6:38f7dce055d0 58 #endif
MikamiUitOpen 6:38f7dce055d0 59
MikamiUitOpen 6:38f7dce055d0 60 void error(const char* format, ...);
MikamiUitOpen 6:38f7dce055d0 61
MikamiUitOpen 6:38f7dce055d0 62 #ifdef __cplusplus
MikamiUitOpen 6:38f7dce055d0 63 }
MikamiUitOpen 6:38f7dce055d0 64 #endif
MikamiUitOpen 6:38f7dce055d0 65
MikamiUitOpen 6:38f7dce055d0 66 #endif