Add 10ms delay after closing relays
This commit is contained in:
		@ -12,6 +12,7 @@
 | 
			
		||||
 | 
			
		||||
#include "stm32g441xx.h"
 | 
			
		||||
#include "stm32g4xx_hal.h"
 | 
			
		||||
#include "stm32g4xx_hal_gpio.h"
 | 
			
		||||
 | 
			
		||||
#define TS_INACTIVE 0
 | 
			
		||||
#define TS_PRECHARGE 2
 | 
			
		||||
@ -51,4 +52,8 @@ void AIR_Discharge_Position();
 | 
			
		||||
void AIR_Active_Position();
 | 
			
		||||
void AIR_Error_Position();
 | 
			
		||||
 | 
			
		||||
typedef enum { RELAY_AIR_NEG, RELAY_AIR_POS, RELAY_PRECHARGE } Relay;
 | 
			
		||||
 | 
			
		||||
void Set_Relay_Position(Relay relay, GPIO_PinState position);
 | 
			
		||||
 | 
			
		||||
#endif /* INC_AIR_STATE_MASCHINE_H_ */
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user