/******************************************************************************* * the includes ******************************************************************************/ #include "hwctrl.h" /******************************************************************************* * the defines ******************************************************************************/ #define DCF1_GPIO GPIOB #define DCF1_PIN FL_GPIO_PIN_11 #define DCF2_GPIO GPIOC #define DCF2_PIN FL_GPIO_PIN_5 #define DCF3_GPIO GPIOC #define DCF3_PIN FL_GPIO_PIN_10 #define DCF4_GPIO GPIOC #define DCF4_PIN FL_GPIO_PIN_8 #define DCF5_GPIO GPIOA #define DCF5_PIN FL_GPIO_PIN_3 #define DCF6_GPIO GPIOA #define DCF6_PIN FL_GPIO_PIN_4 #define DCF7_GPIO GPIOA #define DCF7_PIN FL_GPIO_PIN_6 #define DCF8_GPIO GPIOB #define DCF8_PIN FL_GPIO_PIN_9 #define DCF9_GPIO GPIOA #define DCF9_PIN FL_GPIO_PIN_2 #define DCF10_GPIO GPIOA #define DCF10_PIN FL_GPIO_PIN_15 /******************************************************************************* * the typedefs ******************************************************************************/ /******************************************************************************* * the globals ******************************************************************************/ /******************************************************************************* * the const ******************************************************************************/ /******************************************************************************* * the functions ******************************************************************************/ void hw_gpio_init(void) { FL_GPIO_ResetOutputPin(DCF1_GPIO, DCF1_PIN); FL_GPIO_ResetOutputPin(DCF2_GPIO, DCF2_PIN); FL_GPIO_ResetOutputPin(DCF3_GPIO, DCF3_PIN); FL_GPIO_ResetOutputPin(DCF4_GPIO, DCF4_PIN); FL_GPIO_ResetOutputPin(DCF5_GPIO, DCF5_PIN); FL_GPIO_ResetOutputPin(DCF6_GPIO, DCF6_PIN); FL_GPIO_ResetOutputPin(DCF7_GPIO, DCF7_PIN); FL_GPIO_ResetOutputPin(DCF8_GPIO, DCF8_PIN); FL_GPIO_ResetOutputPin(DCF9_GPIO, DCF9_PIN); FL_GPIO_ResetOutputPin(DCF10_GPIO, DCF10_PIN); GPIO_InitStruct.pin = DCF1_PIN; GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT; GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL; GPIO_InitStruct.pull = FL_DISABLE; FL_GPIO_Init(DCF1_GPIO, &GPIO_InitStruct); GPIO_InitStruct.pin = DCF1_PIN; }