Wilson Tang
/
HSP_RPC_GUI
Fork of the offical HSP_RPC_GUI firmware
Fork of MAXREFDES100 firmware for MAX32620HSP
Diff: HSP/Devices/PushButton/PushButton.cpp
- Revision:
- 1:9490836294ea
- Parent:
- 0:e4a10ed6eb92
--- a/HSP/Devices/PushButton/PushButton.cpp Tue Oct 25 15:22:11 2016 +0000 +++ b/HSP/Devices/PushButton/PushButton.cpp Fri Apr 21 12:12:30 2017 -0500 @@ -46,22 +46,27 @@ interruptButton.fall(&pb_hit_interrupt_fall); } +//****************************************************************************** bool PushButton::GetButtonFallState(void) { return buttonFallState; } +//****************************************************************************** void PushButton::SetButtonFallState(bool state) { buttonFallState = state; } +//****************************************************************************** void PushButton::clearButtonFallState(void) { buttonFallState = false; } +//****************************************************************************** int PushButton::Read(void) { return interruptButton.read(); } +//****************************************************************************** void pb_hit_interrupt_fall(void) { if (Peripherals::pushButton() != NULL) Peripherals::pushButton()->SetButtonFallState(true);