mbed with working rtos for DISCO F746NG

Dependencies:   BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
habiburrahman
Date:
Mon Nov 30 03:35:17 2015 +0000
Commit message:
created working project with 2 basic threads

Changed in this revision

BSP_DISCO_F746NG.lib Show annotated file Show diff for this revision Revisions of this file
LCD_DISCO_F746NG.lib Show annotated file Show diff for this revision Revisions of this file
TS_DISCO_F746NG.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
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r a21a45d681ba BSP_DISCO_F746NG.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BSP_DISCO_F746NG.lib	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/BSP_DISCO_F746NG/#c9112f0c67e3
diff -r 000000000000 -r a21a45d681ba LCD_DISCO_F746NG.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD_DISCO_F746NG.lib	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/LCD_DISCO_F746NG/#d44525b1de98
diff -r 000000000000 -r a21a45d681ba TS_DISCO_F746NG.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TS_DISCO_F746NG.lib	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/TS_DISCO_F746NG/#fe0cf5e2960f
diff -r 000000000000 -r a21a45d681ba main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+#include "TS_DISCO_F746NG.h"
+#include "LCD_DISCO_F746NG.h"
+#include "rtos.h"
+
+#define STACK_SIZE DEFAULT_STACK_SIZE
+
+DigitalOut led1(LED1);
+
+LCD_DISCO_F746NG lcd;
+TS_DISCO_F746NG ts;
+
+
+void thread_1(void const *argument) {
+    while (true) {
+        led1 = !led1;
+        Thread::wait(500);
+    }
+}
+
+void thread_2(void const *argument) {
+    while (true) {
+        printf("this is a sample string\n");
+        Thread::wait(1000);
+    }
+}
+
+
+int main()
+{
+    Thread t1(thread_1, NULL, osPriorityNormal, STACK_SIZE);
+    Thread t2(thread_2, NULL, osPriorityNormal, STACK_SIZE);
+    
+    while(1) {
+
+    }
+}
diff -r 000000000000 -r a21a45d681ba mbed-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mzta/code/mbed-rtos/#8ac966e2cd3f
diff -r 000000000000 -r a21a45d681ba mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 30 03:35:17 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file