The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: TARGET_NUCLEO_F207ZG/TARGET_STM/TARGET_STM32F2/gpio_irq_device.h
- Revision:
- 170:e95d10626187
- Parent:
- 138:093f2bd7b9eb
--- a/TARGET_NUCLEO_F207ZG/TARGET_STM/TARGET_STM32F2/gpio_irq_device.h Fri Jun 22 15:38:59 2018 +0100 +++ b/TARGET_NUCLEO_F207ZG/TARGET_STM/TARGET_STM32F2/gpio_irq_device.h Thu Sep 06 13:39:34 2018 +0100 @@ -34,34 +34,7 @@ extern "C" { #endif -// when LL is available, below include can be used -// #include "stm32f2xx_ll_exti.h" -// until then let's define locally the required functions -__STATIC_INLINE void LL_EXTI_EnableRisingTrig_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->RTSR, ExtiLine); -} -__STATIC_INLINE void LL_EXTI_DisableRisingTrig_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->RTSR, ExtiLine); -} -__STATIC_INLINE void LL_EXTI_EnableFallingTrig_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->FTSR, ExtiLine); -} -__STATIC_INLINE void LL_EXTI_DisableFallingTrig_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->FTSR, ExtiLine); -} -__STATIC_INLINE void LL_EXTI_EnableIT_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->IMR, ExtiLine); -} -__STATIC_INLINE void LL_EXTI_DisableIT_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->IMR, ExtiLine); -} -// Above lines shall be later defined in LL +#include "stm32f2xx_ll_exti.h" // Number of EXTI irq vectors (EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5_9, EXTI10_15) #define CHANNEL_NUM (7)