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

@ -50,6 +50,10 @@ specific memorymap.h header before including this header file.*/
#define SYSCFG_CMPCR MMIO32(SYSCFG_BASE + 0x20)
/* --- SYSCFG_EXTICR Values -------------------------------------------------*/
#define SYSCFG_EXTICR_FIELDSIZE 4
#endif
/**@}*/

View File

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

View File

@ -933,10 +933,10 @@ Line Devices only
/**@}*/
/* --- AFIO_EXTICR1 values ------------------------------------------------- */
/* --- AFIO_EXTICR2 values ------------------------------------------------- */
/* --- AFIO_EXTICR3 values ------------------------------------------------- */
/* --- AFIO_EXTICR4 values ------------------------------------------------- */
/* --- AFIO_EXTICRx values ------------------------------------------------- */
/** EXTICR port selection bits */
#define AFIO_EXTICR_FIELDSIZE 4
/** @defgroup afio_exti Alternate Function EXTI pin number
@ingroup gpio_defines

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

View File

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