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: mbedInterface/mbedInterface.cpp
- Revision:
- 1:3a050d26d4f6
- Parent:
- 0:8dbd6bd9167f
--- a/mbedInterface/mbedInterface.cpp Tue May 19 15:45:42 2015 +0000
+++ b/mbedInterface/mbedInterface.cpp Wed Jun 03 22:54:25 2015 +0000
@@ -178,6 +178,14 @@
//--------------------------------------------------------------
}
+void MBEDSystem::pauseInterrupts() {
+ __disable_irq();
+}
+
+void MBEDSystem::resumeInterrupts() {
+ __enable_irq();
+}
+
void MBEDSystem::mainLoopToDo() {
#ifdef MBED_RF
//Karpova version--------------------------
@@ -252,6 +260,7 @@
void MBEDSystem::incrementClock() {
if (clockSlave) {
+ //The clock is incremented at 1/30th the rate of the input pulses
externalIncrementCounter = (externalIncrementCounter+1) % externalIncrementMod;
if (externalIncrementCounter==0) {
timeKeeper++;