aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-11-18 11:36:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-11-18 11:36:01 +0000
commit9913d1b6ffb81eccdc2c28ae9041872237195856 (patch)
tree8bce3b60e49b7e1281efec99c3c582b06f2be029 /os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
parent7c77845aa765b51b4026749bc4439bb100cc722a (diff)
downloadChibiOS-9913d1b6ffb81eccdc2c28ae9041872237195856.tar.gz
ChibiOS-9913d1b6ffb81eccdc2c28ae9041872237195856.tar.bz2
ChibiOS-9913d1b6ffb81eccdc2c28ae9041872237195856.zip
Changes to RTCv2 driver, not finished yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12433 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h')
-rw-r--r--os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h b/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
index bd1f53222..cb4b2826d 100644
--- a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
+++ b/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
@@ -88,6 +88,20 @@ typedef uint32_t extimode_t;
/* Driver macros. */
/*===========================================================================*/
+/**
+ * @brief From group 1 line number to mask.
+ *
+ * @param[in] line line number in range 0..31
+ */
+#define EXTI_MASK1(line) (uint32_t)(1U << (line))
+
+/**
+ * @brief From group 2 line number to mask.
+ *
+ * @param[in] line line number in range 32..63
+ */
+#define EXTI_MASK2(line) (uint32_t)(1U << ((line) - 32U))
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/