Initialized for DISCO_F413ZH audio example
Dependencies: BSP_DISCO_F413ZH
This is a simple Audio loopback code for DISCO_F413ZH.
The base repository is https://os.mbed.com/teams/ST/code/BSP_DISCO_F413ZH/. I've added workaround patch for Audio-in and out(loopback) demo on DISCO_F413ZH board(Microphone U16, U17)

If you connect a 5x Mems microphone, the Audio-in path (U16 and U17) going to be automatically changed to 5x Mems microphone.
- For more information, please see Audio input mechanism and API description
Testing
1. Import the application into your desktop
You can use Mbed CLI, Online Compiler, and Mbed Studio.
- In case of Mbed CLI,
mbed import http://os.mbed.com/users/Daniel_Lee/code/DISCO_F413ZH-AUDIO-demo/ cd DISCO_F413ZH-AUDIO-demo
- In case of Online Compiler and Mbed Studio, Please click 'Import into Compiler'
2. Compile and program
mbed compile -t <toolchain> -m <TARGET_BOARD>
(supported toolchains : GCC_ARM / ARM / IAR)
3. Download binary to a target board
4. Open a serial monitor on baudrate 115200 to see the output
AUDIO LOOPBACK EXAMPLE FOR DISCO-F413H START: Audio init done.. Audio buffer init done.. Audio in(Microphone U16, U17) recording start.. Audio out init done.. Start loopback (Mic -> Audio Jack)!!
Revision 0:adbe8684bb7c, committed 2017-05-17
- Comitter:
- arostm
- Date:
- Wed May 17 14:16:43 2017 +0200
- Child:
- 1:1025d8dcf8ec
- Commit message:
- Creation of an LCD exemple for the DISCO-F413ZH board
Changed in this revision
| BSP_DISCO_F413ZH.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BSP_DISCO_F413ZH.lib Wed May 17 14:16:43 2017 +0200 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/ST/code/BSP_DISCO_F413ZH/#a3f6b8b5a6bf \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed May 17 14:16:43 2017 +0200
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "stm32f413h_discovery_lcd.h"
+
+int main()
+{
+ BSP_LCD_Init();
+
+ /* Clear the LCD */
+ BSP_LCD_Clear(LCD_COLOR_WHITE);
+
+ BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
+ wait(2);
+ BSP_LCD_Clear(LCD_COLOR_GREEN);
+ BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
+ BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
+ BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE);
+
+ while(1) {
+ }
+}
+
\ No newline at end of file
Daniel Lee