quentin godbert
/
t2-stm32-lift
interrupt géré compil ok sans isr
Fork of T2_STM32 by
Diff: lift.h
- Revision:
- 7:62407850a97d
- Parent:
- 6:6291f032e996
- Child:
- 8:dcaa5c9d8706
diff -r 6291f032e996 -r 62407850a97d lift.h --- a/lift.h Mon Feb 05 15:05:23 2018 +0000 +++ b/lift.h Mon Feb 05 16:17:45 2018 +0000 @@ -32,7 +32,7 @@ private: InterruptIn _interrupt; unsigned char *trye - EventQueue queue(32, trye); + EventQueue queue(32); Thread t; @@ -56,7 +56,7 @@ //t.start(callback(&queue, &EventQueue::dispatch_forever)); printf("Starting in context %p\r\n", Thread::gettid()); // The 'rise' handler will execute in IRQ context - _interrupt.rise(Step2, &Lift::Stopping); + _interrupt.rise(Step2, *Lift::Stopping); // The 'fall' handler will execute in the context of thread 't' //_interrupt.fall(queue.event(fall_handler)); }