Basic

Dependencies:   MQTT

LPG_LTEPin_Controller/LPG_LTEPin_Controller.cpp

Committer:
lwtroach
Date:
2019-04-24
Branch:
Flash_Exam
Revision:
9:4731ae675a01
Parent:
5:b9d12dfdc674

File content as of revision 9:4731ae675a01:

#include "LPG_Config.h"
#include "LPG_LTEPin_Controller.h"

DigitalOut  PinEn_PWR(PWR_LTE);
DigitalOut  PinKey_LTE(KEY);
DigitalOut  PinRst_LTE(RST);

void LPG_LTEPinControl_LTEPowerOn()
{
    PinEn_PWR = 1;
    PinKey_LTE = 0;
    PinRst_LTE = 0;
    wait_ms(300);
    PinKey_LTE = 1;
    wait_ms(1000);
    PinKey_LTE = 0;
}