quentin godbert
/
t2-stm32-lift
interrupt géré compil ok sans isr
Fork of T2_STM32 by
Diff: lift.h
- Revision:
- 9:d3dcad0c7d57
- Parent:
- 8:dcaa5c9d8706
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);