DISCO-F746NGのAudioOutから正弦波をスイープとして出力します。ダブルバッファリングを使って、リアルタイムにデータ生成をしています。 This program outputs sine sweep from AudioOut on DISCO-F746NG. The program uses double buffering when generates data signals.

Dependencies:   BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG mbed

Revision:
0:ece4ec581d2b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common.cpp	Sat Dec 26 07:20:53 2015 +0000
@@ -0,0 +1,22 @@
+#include "main.h"
+
+DigitalOut led1(LED1);
+
+void error_trap()
+{
+    printlcd("### ERROR");
+    while(1) {
+        led1 = !led1;
+        wait_ms(250);
+    }
+}
+
+void printlcd(const char *str)
+{
+    printlcdAt(str, 0);
+}
+
+void printlcdAt(const char *str, uint16_t line)
+{
+    lcd.DisplayStringAt(0, LINE(line), (uint8_t *)str, LEFT_MODE);
+}
\ No newline at end of file