Serial port

Dependencies:   BSP_DISCO_F746NG

Revision:
0:46ab42e88365
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Nov 13 17:37:03 2020 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+InterruptIn sw(USER_BUTTON);
+EventQueue queue(32 * EVENTS_EVENT_SIZE);
+void rise_handler(void)
+{
+    queue.call(printf, "Vypis do serioveho portu\n");
+  
+}
+
+Thread thread;
+int main()
+{   
+    thread.start(callback(&queue, &EventQueue::dispatch_forever));
+    sw.rise(rise_handler);       
+}