Rev 136 | Rev 171 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 136 | Rev 154 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | 179 | ||
180 | // configure the EXT11 interrupt line (P5.3) as an IRQ with the lowest priority |
180 | // configure the EXT11 interrupt line (P5.3) as an IRQ with the lowest priority |
181 | SCU_APBPeriphClockConfig(__WIU, ENABLE); |
181 | SCU_APBPeriphClockConfig(__WIU, ENABLE); |
182 | WIU_Cmd(ENABLE ); |
182 | WIU_Cmd(ENABLE); |
183 | WIU_ClearITPendingBit(WIU_Line11); |
183 | WIU_ClearITPendingBit(WIU_Line11); |
184 | WIU_DeInit(); |
184 | //WIU_DeInit(); |
185 | WIU_InitStructure.WIU_TriggerEdge = WIU_FallingEdge; |
185 | WIU_InitStructure.WIU_TriggerEdge = WIU_FallingEdge; |
186 | WIU_InitStructure.WIU_Line = WIU_Line11; |
186 | WIU_InitStructure.WIU_Line = WIU_Line11; |
187 | WIU_Init(&WIU_InitStructure); |
187 | WIU_Init(&WIU_InitStructure); |
188 | // The EXTIT1_IRQHandler() is called every time the SD-Switch is activated (falling edge) |
188 | // The EXTIT1_IRQHandler() is called every time the SD-Switch is activated (falling edge) |