diff options
author | Guillaume Revaillot <revaillot@archos.com> | 2019-01-28 20:53:10 +0300 |
---|---|---|
committer | Karl Palsson <karlp@etactica.com> | 2019-01-31 12:57:43 +0300 |
commit | 553c876fa5b81f4a3ba1bcd0714e95552f100e00 (patch) | |
tree | 03602fcfb61abffff3f2155c1e869e325b2d141b /include/libopencm3/stm32/common | |
parent | 7afd86db3093044ecbd9d90ffafd4fd8da31f306 (diff) |
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)
Diffstat (limited to 'include/libopencm3/stm32/common')
-rw-r--r-- | include/libopencm3/stm32/common/syscfg_common_l1f234.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/syscfg_common_l1f234.h b/include/libopencm3/stm32/common/syscfg_common_l1f234.h index 776e12da..5e7f2d42 100644 --- a/include/libopencm3/stm32/common/syscfg_common_l1f234.h +++ b/include/libopencm3/stm32/common/syscfg_common_l1f234.h @@ -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 /**@}*/ |