[taranis] SD card detection, 2nd PPM initialised as input (temporary), external module powered up (temporary)

This commit is contained in:
bernet.andre@gmail.com
2013-03-30 16:17:56 +00:00
parent d2aaac6819
commit dc2c4efde5
5 changed files with 33 additions and 7 deletions
+10
View File
@@ -219,6 +219,16 @@ void boardInit()
eepromInit();
sportInit();
usbInit();
//Temporary: Configure second PPM pin as input (done after USB init in case the lib already initialises USB_ID)
GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIO_EXTPPM, ENABLE);
GPIO_InitStructure.GPIO_Pin = PIN_EXTPPM_OUT;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(GPIO_EXTPPM, &GPIO_InitStructure);
}
#endif