Skip to content

Commit dbd4888

Browse files
ABOSTMfpistm
authored andcommitted
libraries(C0): Add GPIO EXTI support
Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 56df9ea commit dbd4888

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/SrcWrapper/src/stm32/interrupt.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ typedef struct {
5353

5454
/* Private Variables */
5555
static gpio_irq_conf_str gpio_irq_conf[NB_EXTI] = {
56-
#if defined (STM32F0xx) || defined (STM32G0xx) || defined (STM32L0xx)
56+
#if defined (STM32C0xx) || defined (STM32F0xx) || defined (STM32G0xx) || defined (STM32L0xx)
5757
{.irqnb = EXTI0_1_IRQn, .callback = NULL}, //GPIO_PIN_0
5858
{.irqnb = EXTI0_1_IRQn, .callback = NULL}, //GPIO_PIN_1
5959
{.irqnb = EXTI2_3_IRQn, .callback = NULL}, //GPIO_PIN_2
@@ -250,7 +250,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
250250
}
251251
}
252252

253-
#if defined(STM32G0xx) || defined(STM32MP1xx) || defined(STM32L5xx) || defined(STM32U5xx)
253+
#if defined(STM32C0xx) || defined(STM32G0xx) || defined(STM32MP1xx) || defined(STM32L5xx) || defined(STM32U5xx)
254254
/**
255255
* @brief EXTI line detection callback.
256256
* @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
@@ -272,7 +272,7 @@ void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin)
272272
}
273273
#endif
274274

275-
#if defined (STM32F0xx) || defined (STM32G0xx) || defined (STM32L0xx)
275+
#if defined (STM32C0xx) || (STM32F0xx) || defined (STM32G0xx) || defined (STM32L0xx)
276276
#ifdef __cplusplus
277277
extern "C" {
278278
#endif

0 commit comments

Comments
 (0)