Switch SERCOM7 (Debug UART) to sync mode + add STDIO
this will allow us to do printf()
Change-Id: Ibf4ba961d4bbf8d787558f38f3d557422587aad3
diff --git a/sysmoOCTSIM/stdio_start.c b/sysmoOCTSIM/stdio_start.c
new file mode 100644
index 0000000..7450a08
--- /dev/null
+++ b/sysmoOCTSIM/stdio_start.c
@@ -0,0 +1,23 @@
+/*
+ * Code generated from Atmel Start.
+ *
+ * This file will be overwritten when reconfiguring your Atmel Start project.
+ * Please copy examples or other code you want to keep to a separate file or main.c
+ * to avoid loosing it when reconfiguring.
+ */
+
+#include "atmel_start.h"
+#include "stdio_start.h"
+
+void STDIO_REDIRECT_0_example(void)
+{
+ /* Print welcome message */
+ printf("\r\nHello ATMEL World!\r\n");
+}
+
+void stdio_redirect_init(void)
+{
+
+ usart_sync_enable(&UART_debug);
+ stdio_io_init(&UART_debug.io);
+}