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: mbed
Diff: src/clocks.cpp
- Revision:
- 48:8e9de9ff1f22
- Parent:
- 47:d10bf65cb7dc
- Child:
- 49:65c714a5def2
--- a/src/clocks.cpp Sun Mar 10 21:39:14 2019 +0000
+++ b/src/clocks.cpp Mon Mar 11 18:57:14 2019 +0000
@@ -29,6 +29,7 @@
#include "stdlib.h"
#include "all_io.h"
int i;
+int numFast = 5;
volatile bool dosFlip = FALSE;
volatile bool dofFlip = FALSE;
@@ -81,7 +82,7 @@
}
}
-void flipSlow(unsigned short numFast){
+void flipSlow(void){
dosFlip = FALSE;
if(!ILR_enable){
/*ec2 = !ec2;
@@ -129,7 +130,7 @@
}
}
-void flipFast(unsigned short numFast){
+void flipFast(void){
dofFlip = FALSE;
if(ILR_enable){
for (i = 0; i < 34; i++){
@@ -186,10 +187,10 @@
}
void checkFlip(void){
- if(dosFlip){
- flipSlow(5);
+ if(dosFlip == TRUE){
+ flipSlow();
}
- if(dofFlip){
- flipFast(5);
+ if(dofFlip == TRUE){
+ flipFast();
}
}
\ No newline at end of file