Init
This commit is contained in:
commit
ad238b8765
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue