Hackaday demo: Signal generator

Dependencies:   SDFileSystem mbed

Revision:
0:8baa10bd07de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 11 02:32:43 2015 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+
+#define _EXTERN_ 
+#include "main.h"
+#include "sdcard.h"
+#include "cio.h"
+#include "output.h"
+#include "command.h"
+
+
+#define BAUD 57600
+
+// Atbitrary Pattern Generator -- Williams
+
+// Serial port
+Serial pc(USBTX, USBRX);
+// Switch to supress auto loading
+DigitalIn NoBoot(SW2); // NOTE: If you don't have a switch on PTA4 you may need to comment this out and the auto_open line below
+
+
+
+int main()
+{
+    timebaseus=25.0f;  // set default
+    pc.baud(BAUD);    // set baudrate
+    if (NoBoot==1) auto_open(); // see note above
+    command();  // Do commands, returns on g command
+    exec();  // never returns
+}