Rohit Dureja / Mbed 2 deprecated Pacemaker

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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);