49 lines
1.3 KiB
C
Raw Normal View History

2025-02-19 13:36:53 +08:00
#ifndef __HWCTRL_H__
#define __HWCTRL_H__
/*******************************************************************************
* the includes
******************************************************************************/
#include "main.h"
/*******************************************************************************
* the defines
******************************************************************************/
2025-02-19 14:20:03 +08:00
#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
2025-02-19 13:36:53 +08:00
/*******************************************************************************
* the typedefs
******************************************************************************/
2025-02-19 14:20:03 +08:00
typedef enum
{
2025-02-19 16:33:45 +08:00
DCF1, DCF2, DCF3, DCF4, DCF5, DCF6, DCF7, DCF8, DCF9, DCF10,
DCF_NUM
2025-02-19 14:20:03 +08:00
}DCFCH_TypeDef;
2025-02-19 13:36:53 +08:00
/*******************************************************************************
* the globals
******************************************************************************/
/*******************************************************************************
* the functions
******************************************************************************/
void hw_gpio_init(void);
2025-02-19 14:20:03 +08:00
void DCF_control(DCFCH_TypeDef channel, uint8_t state);
void V2_12V_control(uint8_t state);
void AP_control(uint8_t state);
2025-02-19 13:36:53 +08:00
#endif