diff options
| author | 流光 <[email protected]> | 2018-08-31 14:46:23 +0800 |
|---|---|---|
| committer | 流光 <[email protected]> | 2018-08-31 14:46:23 +0800 |
| commit | 03ef0fc58dd9956e2f9afbff28f74b4c787a7e1d (patch) | |
| tree | 6ab73b7f9ab035ff91e8f807cbeb29f96f1db7ca | |
| parent | d203e3820ba24d2bde3405093915b2795894a296 (diff) | |
[bsp][rt1050] Fix the pin driver GCC build warning. | 修复pin驱动gcc编译警告.
| -rw-r--r-- | bsp/imxrt1052-evk/drivers/drv_pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/imxrt1052-evk/drivers/drv_pin.c b/bsp/imxrt1052-evk/drivers/drv_pin.c index 2a9af1ea64..e834c1265f 100644 --- a/bsp/imxrt1052-evk/drivers/drv_pin.c +++ b/bsp/imxrt1052-evk/drivers/drv_pin.c @@ -362,7 +362,7 @@ void GPIO5_Combined_0_15_IRQHandler(void) static IRQn_Type rt1052_get_irqnum(GPIO_Type *gpio, rt_uint32_t gpio_pin) { - IRQn_Type irq_num; + IRQn_Type irq_num = -100; /* Invalid interrupt number */ if(gpio == GPIO1) { |
