Subversion Repositories NaviCtrl

Rev

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

Rev 195 Rev 196
Line 220... Line 220...
220
        //SSP0_CLK, SSP0_MOSI, SSP0_NSS pins
220
        //SSP0_CLK, SSP0_MOSI, SSP0_NSS pins
221
        GPIO_StructInit(&GPIO_InitStructure);
221
        GPIO_StructInit(&GPIO_InitStructure);
222
        GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;
222
        GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;
223
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_7;
223
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_7;
224
        GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;
224
        GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;
225
        GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;
225
        GPIO_InitStructure.GPIO_IPInputConnected = GPIO_IPInputConnected_Enable;
226
        GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1; //SSP0_SCLK, SSP0_MOSI, SSP0_NSS
226
        GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1; //SSP0_SCLK, SSP0_MOSI, SSP0_NSS
227
        GPIO_Init (GPIO2, &GPIO_InitStructure);
227
        GPIO_Init (GPIO2, &GPIO_InitStructure);
Line 228... Line 228...
228
 
228
 
229
        // SSP0_MISO pin GPIO2.6
229
        // SSP0_MISO pin GPIO2.6
230
        GPIO_StructInit(&GPIO_InitStructure);
230
        GPIO_StructInit(&GPIO_InitStructure);
231
        GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
231
        GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
232
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6;
232
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6;
233
        GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;
233
        GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;
234
        GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;
234
        GPIO_InitStructure.GPIO_IPInputConnected = GPIO_IPInputConnected_Enable;
235
        GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt2; //SSP0_MISO
235
        GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt2; //SSP0_MISO
Line 236... Line 236...
236
        GPIO_Init (GPIO2, &GPIO_InitStructure);
236
        GPIO_Init (GPIO2, &GPIO_InitStructure);
237
 
237