update mos drive

This commit is contained in:
不吃油炸鸡
2025-08-12 18:43:52 +08:00
parent 6a63839496
commit 12b5d9e142
2 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#ifndef __GATE_H__
#define __GATE_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
// EN1
#define EN1_PORT GPIOB
#define EN1_PIN GPIO_PIN_3
// EN2
#define EN2_PORT GPIOA
#define EN2_PIN GPIO_PIN_15
//
#define HIGH_CUR 0
#define MID_CUR 1
#define LOW_CUR 2
void Gate_Port_Init(void);
void flow_route_selection(uint8_t selection);
uint8_t Gate_get_status(void);
#ifdef __cplusplus
}
#endif
#endif