1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

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

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