From a4ccf980dc0bc5341e7fa4668892f04fe4ae8f4f Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Fri, 2 Apr 2021 15:47:16 +0200 Subject: [PATCH] BlackPill F401CC: add USER_BTN on PA0 Note this user button is not available on all revisions of this board Fixes #1144 Signed-off-by: Alexandre Bourdiol --- .../F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.h b/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.h index e87264598c..a23dc96f8c 100644 --- a/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.h +++ b/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.h @@ -81,7 +81,8 @@ // On-board user button #ifndef USER_BTN - #define USER_BTN ND + // User button is not available on all revision of this board + #define USER_BTN PA0 #endif // SPI definitions