interrupt géré compil ok sans isr

Fork of T2_STM32 by Atechsys

Files at this revision

API Documentation at this revision

Comitter:
ketingue
Date:
Tue Feb 06 11:04:00 2018 +0000
Parent:
8:dcaa5c9d8706
Commit message:
lift avec interruption sans isr

Changed in this revision

lift.h Show annotated file Show diff for this revision Revisions of this file
diff -r dcaa5c9d8706 -r d3dcad0c7d57 lift.h
--- a/lift.h	Tue Feb 06 09:27:06 2018 +0000
+++ b/lift.h	Tue Feb 06 11:04:00 2018 +0000
@@ -10,7 +10,7 @@
 
   PinName motionspin  ,
          motiondir    ,
-         motionsensor ;
+         motionsensor = LIFTCURRENTSENSOR;
 
 DigitalOut RED(D6);
 DigitalOut GRN(D5);
@@ -87,7 +87,7 @@
 
 
   
-Lift::Lift(PinName motionsensor): _interrupt(motionsensor){ 
+Lift::Lift(PinName Step2): _interrupt(Step2){ 
     //t.start(callback(&queue, &EventQueue::dispatch_forever));
     printf("Starting in context %p\r\n", Thread::gettid());
     _interrupt.mode(PullUp);