Skip to content

Commit 03ef0fc

Browse files
committed
[bsp][rt1050] Fix the pin driver GCC build warning. | 修复pin驱动gcc编译警告.
1 parent d203e38 commit 03ef0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/imxrt1052-evk/drivers/drv_pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void GPIO5_Combined_0_15_IRQHandler(void)
362362

363363
static IRQn_Type rt1052_get_irqnum(GPIO_Type *gpio, rt_uint32_t gpio_pin)
364364
{
365-
IRQn_Type irq_num;
365+
IRQn_Type irq_num = -100; /* Invalid interrupt number */
366366

367367
if(gpio == GPIO1)
368368
{

0 commit comments

Comments
 (0)