Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 1:2912bfdcb851
- Parent:
- 0:e9239870dd85
diff -r e9239870dd85 -r 2912bfdcb851 main.cpp
--- a/main.cpp Fri Dec 18 08:17:06 2015 +0000
+++ b/main.cpp Fri Dec 18 09:09:48 2015 +0000
@@ -1,17 +1,17 @@
-Queue<int, 5> brugqueue;
+#include "test.h"
#include "mbed.h"
#include "rtos.h"
#include "Stoplicht.cpp"
#include "Brug.h"
-
+Queue<uint32_t, 10> brugqueue;
int main() {
- Brug brug(10, &brugqueue);
+ Brug brug(10);
while(1){
- brugqueue.put((int*)1);
+ brugqueue.put((uint32_t*)1);
wait(1);
- brugqueue.put((int*)2);
+ brugqueue.put((uint32_t*)2);
wait(2);
};
}
\ No newline at end of file