mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
移动文件夹
This commit is contained in:
32
software/Power_Pico/BSP/GATE/gate.h
Normal file
32
software/Power_Pico/BSP/GATE/gate.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef __GATE_H__
|
||||
#define __GATE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "main.h"
|
||||
#include "adc.h"
|
||||
|
||||
// EN1
|
||||
#define EN1_PORT GPIOB
|
||||
#define EN1_PIN GPIO_PIN_3
|
||||
|
||||
// EN2
|
||||
#define EN2_PORT GPIOA
|
||||
#define EN2_PIN GPIO_PIN_15
|
||||
|
||||
// Flow route selection
|
||||
#define HIGH_CUR 3
|
||||
#define MID_CUR 2
|
||||
#define LOW_CUR 1
|
||||
|
||||
void Gate_Port_Init(void);
|
||||
void flow_route_selection(uint8_t selection);
|
||||
uint8_t Gate_get_status(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user