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: X_NUCLEO_IKS01A1-f255a2c75ecb mbed-rtos mbed
Revision 36:0e30191d7db6, committed 2016-05-18
- Comitter:
- Jacinta
- Date:
- Wed May 18 11:10:28 2016 +0000
- Parent:
- 35:34bbca276f99
- Child:
- 37:886dcde018ad
- Commit message:
- ....
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| userMethods.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed May 18 03:32:21 2016 +0000
+++ b/main.cpp Wed May 18 11:10:28 2016 +0000
@@ -33,7 +33,7 @@
int i = 0;
-void sampleData(void const *args)
+void sampleData()
{
//while(true){
if(flag) printf("\nAbout to alloc\n");
@@ -97,11 +97,10 @@
//Initialise time
set_time(0);
- Thread thread(sampleData);
//ISR to sample data
- //Ticker ticker;
- //ticker.attach(e.sampleData, e.T);
+ Ticker ticker;
+ ticker.attach(&sampleData, e.T);
char command[20];
--- a/userMethods.cpp Wed May 18 03:32:21 2016 +0000 +++ b/userMethods.cpp Wed May 18 11:10:28 2016 +0000 @@ -5,7 +5,7 @@ #include <stdexcept> #include <vector> -// FIFO buffer +//FIFO buffer vector<log_data> * logVector; int * UserMethods::n; ExpansionBoard * UserMethods::e;
