-
Notifications
You must be signed in to change notification settings - Fork 22
/
GsmConfig.h
29 lines (20 loc) · 942 Bytes
/
GsmConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _GSMCONFIG_H
#define _GSMCONFIG_H
// Please enable FreerRtos
// Please Config your usart and enable interrupt on CubeMX
// 2 control Pin PowerKey>>>>output--open drain : default Value>>1 Power status>>>>>input---pulldown
// Select "General peripheral Initalizion as a pair of '.c/.h' file per peripheral" on project settings
#define _GSM_DUAL_SIM_SUPPORT 1
#define _GSM_USART huart1
#define _GSM_POWER_PORT GSM_POWER_PIN_GPIO_Port
#define _GSM_POWER_PIN GSM_POWER_PIN_Pin
#define _GSM_POWER_STATUS_PORT GSM_POWER_STATUS_GPIO_Port
#define _GSM_POWER_STATUS_PIN GSM_POWER_STATUS_Pin
#define _GSM_RX_SIZE 512
#define _GSM_TX_SIZE 256
#define _GSM_TASK_SIZE 512
#define _GSM_WAIT_TIME_LOW 1000
#define _GSM_WAIT_TIME_MED 10000
#define _GSM_WAIT_TIME_HIGH 25000
#define _GSM_WAIT_TIME_VERYHIGH 60000
#endif