From ad238b87650447db1f8c5fa059953e1210f6f836 Mon Sep 17 00:00:00 2001 From: cfif Date: Wed, 4 Dec 2024 13:10:47 +0300 Subject: [PATCH] Init --- PwmSim7600e.c | 18 ++++++++++++++++++ PwmSim7600e.h | 21 +++++++++++++++++++++ modular.json | 22 ++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 PwmSim7600e.c create mode 100644 PwmSim7600e.h create mode 100644 modular.json diff --git a/PwmSim7600e.c b/PwmSim7600e.c new file mode 100644 index 0000000..4e6f362 --- /dev/null +++ b/PwmSim7600e.c @@ -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); +} diff --git a/PwmSim7600e.h b/PwmSim7600e.h new file mode 100644 index 0000000..6cc9a50 --- /dev/null +++ b/PwmSim7600e.h @@ -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 diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..e4b5b5a --- /dev/null +++ b/modular.json @@ -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" + ] + } +} \ No newline at end of file