Commit f4ca8a43 authored by 李俭双's avatar 李俭双

🐞 fix:45370 Apparent: Using value of uninitialized automatic object '%s'

parent c3dd89b0
...@@ -73,9 +73,9 @@ const RTE_DEEPSLEEP_INTP_Table_st_t DEEPSLEEP_INTP_Table[] = ...@@ -73,9 +73,9 @@ const RTE_DEEPSLEEP_INTP_Table_st_t DEEPSLEEP_INTP_Table[] =
void RTE_DEEPSLEEP_GPIO_Interrupt_Enable(uint16_t u16Pin, Trigger_TypeDef EXTI_Trigger) void RTE_DEEPSLEEP_GPIO_Interrupt_Enable(uint16_t u16Pin, Trigger_TypeDef EXTI_Trigger)
{ {
// int32_t i32Result; // int32_t i32Result;
uint8_t u8Index; uint8_t u8Index = 0;
uint16_t u16PortIndex; uint16_t u16PortIndex = 0;
uint16_t u16PinIndex; uint16_t u16PinIndex = 0;
GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitTypeDef GPIO_InitStruct = {0};
INTP_InitTypeDef INTP_InitStructure; INTP_InitTypeDef INTP_InitStructure;
......
...@@ -527,10 +527,10 @@ int32_t RTE_GPIO_Interrupt_Register(RTE_GPIO_IRQ_Desc_st_t *pstIRQDesc, ...@@ -527,10 +527,10 @@ int32_t RTE_GPIO_Interrupt_Register(RTE_GPIO_IRQ_Desc_st_t *pstIRQDesc,
*/ */
int32_t RTE_GPIO_Interrupt_Enable(RTE_GPIO_IRQ_Desc_st_t *pstIRQDesc) int32_t RTE_GPIO_Interrupt_Enable(RTE_GPIO_IRQ_Desc_st_t *pstIRQDesc)
{ {
int32_t i32Result; int32_t i32Result = 0;
uint8_t u8Index; uint8_t u8Index = 0;
uint16_t u16PortIndex; uint16_t u16PortIndex = 0;
uint16_t u16PinIndex; uint16_t u16PinIndex = 0;
INTP_InitTypeDef stEXTICfg; INTP_InitTypeDef stEXTICfg;
// GPIO_InitTypeDef GPIO_InitStruct; // GPIO_InitTypeDef GPIO_InitStruct;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment