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.
Fork of Task617-mbedos by
Revision 7:3d054c1a26bf, committed 2017-10-31
- Comitter:
- noutram
- Date:
- Tue Oct 31 15:15:14 2017 +0000
- Parent:
- 6:bd736256c32d
- Child:
- 8:eb72f789f912
- Commit message:
- updated for stage-3
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 03 11:34:50 2017 +0000
+++ b/main.cpp Tue Oct 31 15:15:14 2017 +0000
@@ -6,19 +6,14 @@
#define DELAY 200
-//Digital outputs
DigitalOut onBoardLED(LED1);
-DigitalOut redLED(D7);
-DigitalOut yellowLED(D6);
-DigitalOut greenLED(D5);
+DigitalOut redLED(PE_15);
+DigitalOut yellowLED(PB_10);
+DigitalOut greenLED(PB_11);
-//Serial Interface
-Serial pc(USBTX, USBRX);
-
-//Digital inputs
DigitalIn onBoardSwitch(USER_BUTTON);
-DigitalIn SW1(D4);
-DigitalIn SW2(D3);
+DigitalIn SW1(PE_12);
+DigitalIn SW2(PE_14);
//Thread ID for the Main function (CMSIS API)
osThreadId tidMain;
@@ -31,7 +26,7 @@
void thread1()
{
- pc.printf("Entering thread 1\n");
+ printf("Entering thread 1\n");
while (true) {
yellowLED = 1;
@@ -59,7 +54,7 @@
void thread2()
{
- pc.printf("Entering thread 2\n");
+ printf("Entering thread 2\n");
while (true) {
redLED = 1;
@@ -100,7 +95,7 @@
t1.start(thread1);
t2.start(thread2);
- pc.printf("Main Thread\n");
+ printf("Main Thread\n");
while (true) {
Thread::wait(osWaitForever);
}
--- a/mbed-os.lib Mon Apr 03 11:34:50 2017 +0000 +++ b/mbed-os.lib Tue Oct 31 15:15:14 2017 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d +https://github.com/ARMmbed/mbed-os/#e62a1b9236b44e70ae3b0902dc538481c04d455b
