SmartOS/Board/AP0803.cpp

43 lines
612 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "AP0803.h"
AP0803* AP0803::Current = nullptr;
AP0803::AP0803()
{
LedPins.Add(PC7); //PE5 0803上的网络指示灯
LedPins.Add(PE4);
LedPins.Add(PD0);
ButtonPins.Add(PE9);
ButtonPins.Add(PE14);
Gsm.Com = COM4;
Gsm.Baudrate = 115200;
Gsm.Power = PE0; // 0A04170509板上电源为PA4
Gsm.Reset = PD3;
Gsm.LowPower = P0;
Current = this;
}
/*
GPRS(COM2)
PA4 POWER
PE0 PWR_KEY
PD3 RST
PC10(TX4) RXD
PC11(RX4) TXD
PE9 KEY1
PE14 KEY2
PE5 LED1
PE4 LED2
PD0 LED3
USB
PA11 _N
PA12 _P
*/