From 95703d444ce6e019b7f0740f5eefaa9b39515243 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 buuton is not available on all revisions of this board Fixes #1144 Signed-off-by: Alexandre Bourdiol --- .../F401C(B-C)_F401C(D-E)_F401CCFx/variant_BLACKPILL_F401CC.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variants/STM32F4xx/F401C(B-C)_F401C(D-E)_F401CCFx/variant_BLACKPILL_F401CC.h b/variants/STM32F4xx/F401C(B-C)_F401C(D-E)_F401CCFx/variant_BLACKPILL_F401CC.h index 99333883b5..d1d5aecc8a 100644 --- a/variants/STM32F4xx/F401C(B-C)_F401C(D-E)_F401CCFx/variant_BLACKPILL_F401CC.h +++ b/variants/STM32F4xx/F401C(B-C)_F401C(D-E)_F401CCFx/variant_BLACKPILL_F401CC.h @@ -87,7 +87,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