You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
690 B
36 lines
690 B
|
3 weeks ago
|
/*
|
||
|
|
* motors_power_action.c
|
||
|
|
*
|
||
|
|
* Created on: 2025年7月14日
|
||
|
|
* Author: akeguo
|
||
|
|
*/
|
||
|
|
#include "motors_power_action.h"
|
||
|
|
#include "motors.h"
|
||
|
|
|
||
|
|
transition_t current_motor_power_state;
|
||
|
|
|
||
|
|
transition_state_t motor_power_on_state={Motors_Power_On_Enter,Motors_Power_On_Do,Motors_Power_On_Exit};
|
||
|
|
transition_state_t motor_power_off_state={NULL,Motors_Power_Off_Do,NULL};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
void Motors_Power_On_Do(transition_t *p_this)
|
||
|
|
{
|
||
|
|
GF_BSP_GPIO_SetIO(Motor_Power_IO_CTL, K_ON_Motor);
|
||
|
|
}
|
||
|
|
|
||
|
|
void Motors_Power_Off_Do(transition_t *p_this)
|
||
|
|
{
|
||
|
|
GF_BSP_GPIO_SetIO(Motor_Power_IO_CTL, K_OFF_Motor);
|
||
|
|
}
|
||
|
|
|
||
|
|
void Motors_Power_On_Enter(transition_t *p_this)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
void Motors_Power_On_Exit(transition_t *p_this)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|