From 3b6322181c77ebb2354ad5deca60951ba37720ed Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 6 Jun 2015 18:17:04 +0200 Subject: [PATCH] [Taranis] Simplification of PWR driver --- radio/src/targets/taranis/pwr_driver.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/radio/src/targets/taranis/pwr_driver.c b/radio/src/targets/taranis/pwr_driver.c index 60eb75d84..c3ecb269c 100644 --- a/radio/src/targets/taranis/pwr_driver.c +++ b/radio/src/targets/taranis/pwr_driver.c @@ -56,39 +56,24 @@ void pwrInit() GPIO_InitStructure.GPIO_Pin = PIN_PWR_STATUS; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; GPIO_Init(GPIOPWR, &GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin = PIN_PWR_LED; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; GPIO_Init(GPIOPWRLED, &GPIO_InitStructure); GPIO_ResetBits(GPIO_INT_RF_PWR, PIN_INT_RF_PWR); GPIO_InitStructure.GPIO_Pin = PIN_INT_RF_PWR; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIO_INT_RF_PWR, &GPIO_InitStructure); GPIO_ResetBits(GPIO_EXT_RF_PWR, PIN_EXT_RF_PWR); GPIO_InitStructure.GPIO_Pin = PIN_EXT_RF_PWR; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIO_EXT_RF_PWR, &GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin = PIN_TRNDET; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; GPIO_Init(GPIOTRNDET, &GPIO_InitStructure); // Soft power ON