Subversion Repositories NaviCtrl

Rev

Rev 362 | Rev 378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 362 Rev 369
Line 175... Line 175...
175
        GPIO_InitStructure.GPIO_Type =                  GPIO_Type_PushPull ;
175
        GPIO_InitStructure.GPIO_Type =                  GPIO_Type_PushPull ;
176
        GPIO_InitStructure.GPIO_IPInputConnected =      GPIO_IPInputConnected_Disable;
176
        GPIO_InitStructure.GPIO_IPInputConnected =      GPIO_IPInputConnected_Disable;
177
        GPIO_InitStructure.GPIO_Alternate =     GPIO_InputAlt1;
177
        GPIO_InitStructure.GPIO_Alternate =     GPIO_InputAlt1;
178
    GPIO_Init(GPIO5, &GPIO_InitStructure);
178
    GPIO_Init(GPIO5, &GPIO_InitStructure);
Line -... Line 179...
-
 
179
       
179
       
180
/*
180
        // configure the EXT11 interrupt line (P5.3) as an IRQ with the lowest priority
181
        // configure the EXT11 interrupt line (P5.3) as an IRQ with the lowest priority
181
        SCU_APBPeriphClockConfig(__WIU, ENABLE);
182
        SCU_APBPeriphClockConfig(__WIU, ENABLE);
182
        WIU_Cmd(ENABLE);
183
        WIU_Cmd(ENABLE);
183
        WIU_ClearITPendingBit(WIU_Line11);
184
        WIU_ClearITPendingBit(WIU_Line11);
Line 188... Line 189...
188
        // The  EXTIT1_IRQHandler() is called every time the SD-Switch is activated (falling edge)
189
        // The  EXTIT1_IRQHandler() is called every time the SD-Switch is activated (falling edge)
189
        // by inserting an sd-card
190
        // by inserting an sd-card
190
        SCU_WakeUpLineConfig(11);
191
        SCU_WakeUpLineConfig(11);
191
    VIC_Config(EXTIT1_ITLine, VIC_IRQ, PRIORITY_SDSWITCH);
192
    VIC_Config(EXTIT1_ITLine, VIC_IRQ, PRIORITY_SDSWITCH);
192
    VIC_ITCmd(EXTIT1_ITLine, ENABLE);
193
    VIC_ITCmd(EXTIT1_ITLine, ENABLE);
-
 
194
*/
193
}
195
}
Line 194... Line 196...
194
 
196
 
195
void SSC_Deinit(void)
197
void SSC_Deinit(void)
196
{
198
{