#ifndef __HWCTRL_H__ #define __HWCTRL_H__ /******************************************************************************* * the includes ******************************************************************************/ #include "main.h" /******************************************************************************* * the defines ******************************************************************************/ #define DCF_ON 1 #define DCF_OFF 0 #define V2_12V_ON 1 #define V2_12V_OFF 0 #define AP_ON 1 #define AP_OFF 0 /******************************************************************************* * the typedefs ******************************************************************************/ typedef enum { DCF1, DCF2, DCF3, DCF4, DCF5, DCF6, DCF7, DCF8, DCF9, DCF10, DCF_NUM }DCFCH_TypeDef; /******************************************************************************* * the globals ******************************************************************************/ /******************************************************************************* * the functions ******************************************************************************/ void hw_gpio_init(void); void DCF_control(DCFCH_TypeDef channel, uint8_t state); void V2_12V_control(uint8_t state); void AP_control(uint8_t state); #endif