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.
Revision 3:4d586c7c2a46, committed 2013-11-26
- Comitter:
- rohitdureja
- Date:
- Tue Nov 26 04:48:53 2013 +0000
- Parent:
- 2:f6066ec3c8bc
- Commit message:
- Milestone two demo model of pacemaker
Changed in this revision
| pacemaker.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/pacemaker.cpp Mon Nov 25 04:34:07 2013 +0000
+++ b/pacemaker.cpp Tue Nov 26 04:48:53 2013 +0000
@@ -50,6 +50,8 @@
as = 0;*/
//Disable the LRI timer as a AS has been received
LRI.detach();
+ //Disable the PVARP timer as a AS has been recieved
+ PVARP.detach();
//Make asValid=0 and vsValid=0
asValid = 0;
vsValid = 0;
@@ -77,6 +79,8 @@
vsValid = 0;
//Set up timer to interrupt at PVARP
PVARP.attach(&postPVARP, pvarp);
+ //Set up timer to interrupt at LRI-AVI
+ LRI.attach(&noAtrialEvent, lri-avi);
//Wait for VRP and disable all interrupts
__disable_irq();
wait(vrp);