| | |
| | | |
| | | #define Motor_B_PIN GPIO_Pin_9 |
| | | #define Motor_B_PORT GPIOB |
| | | #define Motor_B_HIGH GPIO_SetBits(Motor_A_PORT,Motor_A_PIN) |
| | | #define Motor_B_LOW GPIO_ResetBits(Motor_A_PORT,Motor_A_PIN) |
| | | #define Motor_B_HIGH GPIO_SetBits(Motor_B_PORT,Motor_B_PIN) |
| | | #define Motor_B_LOW GPIO_ResetBits(Motor_B_PORT,Motor_B_PIN) |
| | | |
| | | #define Motor_OP_PIN GPIO_Pin_6 |
| | | #define Motor_OP_PORT GPIOB |
| | |
| | | |
| | | #define Motor_CL_PIN GPIO_Pin_7 |
| | | #define Motor_CL_PORT GPIOB |
| | | #define Motor_CL_IO_READ GPIO_ReadInputDataBit(Motor_OP_PORT,Motor_OP_PIN) |
| | | #define Motor_CL_IO_READ GPIO_ReadInputDataBit(Motor_CL_PORT,Motor_CL_PIN) |
| | | |
| | | #define VALVE_FORCE_OPEN_PIN GPIO_Pin_12 |
| | | #define VALVE_FORCE_OPEN_PORT GPIOC |
| | |
| | | |
| | | typedef struct{ |
| | | |
| | | VALVE_STATUS valve_status; |
| | | // VALVE_STATUS valve_status; |
| | | VALVE_CTRL_TYPE_T valve_ctrl_order; |
| | | uint16_t open_time_cnt; |
| | | uint16_t close_time_cnt; |