Extract RESET_BUTTON_IS_PRESSED

This commit is contained in:
László Monda
2016-10-17 22:51:17 +02:00
parent ab3d8b92f0
commit 3bd2c7f18e
2 changed files with 3 additions and 1 deletions

View File

@@ -14,6 +14,8 @@
#define RESET_BUTTON_IRQ PORTB_IRQn
#define RESET_BUTTON_IRQ_HANDLER PORTB_IRQHandler
#define RESET_BUTTON_IS_PRESSED !GPIO_ReadPinInput(RESET_BUTTON_GPIO, RESET_BUTTON_PIN)
// Functions:
extern void InitResetButton();