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.
Dependencies: MPU9250_SPI SDFileSystem XBeeLib
Diff: main.cpp
- Revision:
- 1:a6dc717fb060
- Parent:
- 0:73cd0cb02330
- Child:
- 3:26aeff25f610
--- a/main.cpp Wed Oct 11 14:12:46 2017 +0000
+++ b/main.cpp Wed Oct 11 17:28:39 2017 +0000
@@ -1,14 +1,42 @@
+/*
+* Los Putacos
+* Copyright (C) 2017, All rights reserved.
+* ________________________________________
+*
+* Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez
+* Date: 11-Oct-2017
+* Version: V0.1
+*/
+
+//-----------------------------------------------------------------
+// Board: NUCLEO - F401RE
+// Version: MR1136 rev C
+//-----------------------------------------------------------------
+
+//-----------------------------------------------------------------
+// Includes
#include "mbed.h"
#include "rtos.h"
+//-----------------------------------------------------------------
+//-----------------------------------------------------------------
+// Declarations
+DigitalOut led1(LED1);
+//-----------------------------------------------------------------
+
+//-----------------------------------------------------------------
+// Global Variables
+//-----------------------------------------------------------------
+
+//-----------------------------------------------------------------
void print_char(char c = '*')
{
printf("%c", c);
fflush(stdout);
}
+//-----------------------------------------------------------------
-DigitalOut led1(LED1);
-
+//-----------------------------------------------------------------
void print_thread(void const *argument)
{
while (true) {
@@ -16,7 +44,9 @@
print_char();
}
}
+//-----------------------------------------------------------------
+//-----------------------------------------------------------------
int main()
{
printf("\n\n*** RTOS basic example ***\n");
@@ -26,3 +56,4 @@
Thread::wait(500);
}
}
+//-----------------------------------------------------------------

