This commit is contained in:
cfif 2024-12-04 13:10:47 +03:00
commit ad238b8765
3 changed files with 61 additions and 0 deletions

18
PwmSim7600e.c Normal file
View File

@ -0,0 +1,18 @@
//
// Created by xemon on 04.01.23.
//
#include "SystemDelayInterface.h"
#include "PwmSim7600e.h"
void PwmSim7600e_Startup(tSim7600ePower *env) {
GpioPinEnable(&env->gsm);
SystemDelayMs(100);
GpioPinEnable(&env->gsm.onOff);
SystemDelayMs(100);
GpioPinEnable(&env->gsm.power);
SystemDelayMs(500);
GpioPinDisable(&env->gsm.onOff);
SystemDelayMs(500);
GpioPinEnable(&env->gsm.onOff);
}

21
PwmSim7600e.h Normal file
View File

@ -0,0 +1,21 @@
//
// Created by xemon on 04.01.23.
//
#ifndef UVEOS_ON_NATION_PWMSIM7600E_H
#define UVEOS_ON_NATION_PWMSIM7600E_H
#include "GpioPin.h"
typedef struct {
struct {
tGpioPin onOff;
tGpioPin power;
tGpioPin ChargeC;
} gsm;
} tSim7600ePower;
void PwmSim7600e_Startup(tSim7600ePower *env);
#endif //UVEOS_ON_NATION_PWMSIM7600E_H

22
modular.json Normal file
View File

@ -0,0 +1,22 @@
{
"dep": [
{
"type": "git",
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
"repo": "GpioPinInterface"
},
{
"type": "git",
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
"repo": "SystemDelayInterface"
}
],
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
"./**.c"
]
}
}