buttons: Wrap macros with #ifndef (#216)

This commit is contained in:
Saleem Rashid 2017-08-28 12:41:45 +01:00 committed by Pavol Rusnak
parent 07f6e495b7
commit 724ce5e7ee
1 changed files with 8 additions and 0 deletions

View File

@ -34,8 +34,16 @@ extern struct buttonState button;
void buttonUpdate(void);
#ifndef BTN_PORT
#define BTN_PORT GPIOC
#endif
#ifndef BTN_PIN_YES
#define BTN_PIN_YES GPIO2
#endif
#ifndef BTN_PIN_NO
#define BTN_PIN_NO GPIO5
#endif
#endif