26 lines
636 B
C
26 lines
636 B
C
//
|
|
// Created by xemon on 30.12.22.
|
|
//
|
|
#include "PwmLe910.h"
|
|
#include "SystemDelayInterface.h"
|
|
|
|
void PwmLe910_StartUp(tTelitPower *env) {
|
|
|
|
GpioPinEnable(&env->charge.power);
|
|
GpioPinEnable(&env->charge.onOff);
|
|
|
|
GpioPinEnable(&env->charge.ChargeC);
|
|
GpioPinEnable(&env->charge.power);
|
|
GpioPinEnable(&env->charge.onOff);
|
|
// GpioPinEnable(&env->inAnt);
|
|
|
|
}
|
|
|
|
void PwmLe910_ShutDown(tTelitPower *env) {
|
|
GpioPinDisable(&env->charge.onOff);
|
|
GpioPinDisable(&env->charge.power);
|
|
SystemDelayMs(1000);
|
|
GpioPinDisable(&env->discharge.chargeCapacitors);
|
|
GpioPinDisable(&env->discharge.chargeCapacitorsDNI);
|
|
}
|