第一次提交

This commit is contained in:
2026-04-09 10:14:20 +08:00
commit e325a77b42
584 changed files with 279711 additions and 0 deletions

50
Bsp/bsp_airsac.c Normal file
View File

@@ -0,0 +1,50 @@
#include "bsp_airsac.h"
#include "bsp_mos.h"
#include "bsp_moto.h"
void airsac_charge(airsac_num airsac)
{
mos_union mos_data = {0};
set_moto_out(1, 1001);
mos_data.mos = MOS(airsac + 10);
mos_set(mos_data);
}
void airsac_discharge(airsac_num airsac)
{
mos_union mos_data = {0};
set_moto_out(1, 0);
mos_data.mos = MOS(airsac);
mos_set(mos_data);
}
void all_airsac_discharge(void)
{
mos_union mos_data = {0};
set_moto_out(1,0);
mos_data.mos = ALL_PRESSURIZE_MOS;
mos_set(mos_data);
}
void all_airsac_charge(void)
{
mos_union mos_data = {0};
set_moto_out(1, 1001);
mos_data.mos = ALL_INLET_MOS;
mos_set(mos_data);
}
void airsac_stop(void)
{
mos_union mos_data = {0};
mos_data.mos = ~ALL_MOS;
set_moto_out(1, 0);
}