![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ATT_SMS_System for home security system
Dependencies: FXOS8700CQ MODSERIAL mbed-rtos mbed
Fork of ATT_Cellular_IOT_Button by
Diff: main.cpp
- Revision:
- 71:bcbc072b85e1
- Parent:
- 70:e25fe7e5488a
- Child:
- 73:4a7aa34332b9
--- a/main.cpp Tue Aug 09 23:55:37 2016 +0000 +++ b/main.cpp Fri Aug 12 17:18:09 2016 +0000 @@ -22,6 +22,9 @@ volatile int g_sw2_flag = 0; // SW2 event-triggered interrupt +// ISR = interrupt service routine +// down = button was pushed down/falling +// up = button was released/rising void sw2_isr_down() { g_sw2_flag = 1; // set flag in ISR