Wen-ting Lo
/
STM32F303RE_LPG
Basic
LPG_LTEPin_Controller/LPG_LTEPin_Controller.cpp@5:b9d12dfdc674, 2019-04-23 (annotated)
- Committer:
- lwtroach
- Date:
- Tue Apr 23 09:53:11 2019 +0000
- Revision:
- 5:b9d12dfdc674
Refined the work before
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lwtroach | 5:b9d12dfdc674 | 1 | #include "LPG_Config.h" |
lwtroach | 5:b9d12dfdc674 | 2 | #include "LPG_LTEPin_Controller.h" |
lwtroach | 5:b9d12dfdc674 | 3 | |
lwtroach | 5:b9d12dfdc674 | 4 | DigitalOut PinEn_PWR(PWR_LTE); |
lwtroach | 5:b9d12dfdc674 | 5 | DigitalOut PinKey_LTE(KEY); |
lwtroach | 5:b9d12dfdc674 | 6 | DigitalOut PinRst_LTE(RST); |
lwtroach | 5:b9d12dfdc674 | 7 | |
lwtroach | 5:b9d12dfdc674 | 8 | void LPG_LTEPinControl_LTEPowerOn() |
lwtroach | 5:b9d12dfdc674 | 9 | { |
lwtroach | 5:b9d12dfdc674 | 10 | PinEn_PWR = 1; |
lwtroach | 5:b9d12dfdc674 | 11 | PinKey_LTE = 0; |
lwtroach | 5:b9d12dfdc674 | 12 | PinRst_LTE = 0; |
lwtroach | 5:b9d12dfdc674 | 13 | wait_ms(300); |
lwtroach | 5:b9d12dfdc674 | 14 | PinKey_LTE = 1; |
lwtroach | 5:b9d12dfdc674 | 15 | wait_ms(1000); |
lwtroach | 5:b9d12dfdc674 | 16 | PinKey_LTE = 0; |
lwtroach | 5:b9d12dfdc674 | 17 | } |
lwtroach | 5:b9d12dfdc674 | 18 | |
lwtroach | 5:b9d12dfdc674 | 19 |