stm32: exti: define AFIO/SYSCFG_EXTICR_FIELDSIZE for all chip.

While on all current chips, exticr gpio port mux selection is coded on 4 bits,
stm32g0 EXTI_EXTICR register uses 8 bits.  Align all exti header to reference
that value (was previously defined for f0 as SYCFG_EXTICR_SKIP)
This commit is contained in:
Guillaume Revaillot
2019-01-28 18:53:10 +01:00
committed by Karl Palsson
parent 7afd86db30
commit 553c876fa5
5 changed files with 11 additions and 5 deletions

View File

@@ -111,6 +111,7 @@
/* SYSCFG_EXTICR Values -- --------------------------------------------------*/
#define SYSCFG_EXTICR_FIELDSIZE 4
#define SYSCFG_EXTICR_GPIOA 0
#define SYSCFG_EXTICR_GPIOB 1
#define SYSCFG_EXTICR_GPIOC 2