-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathgsmConfig.h
25 lines (21 loc) · 1.04 KB
/
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
#ifndef _GSMCONFIG_H_
#define _GSMCONFIG_H_
#define _GSM_MAIN_POWER 1 // control gsm main power
#define _GSM_SIM_DETECTOR 1 // use this feature when the SIM card holder has the ability to detect the SIM card
#define _GSM_DEBUG 1 // use printf debug
#define _GSM_CALL 0 // enable call
#define _GSM_MSG 1 // enable message
#define _GSM_GPRS 1 // enable gprs
#define _GSM_BLUETOOTH 0 // enable bluetooth , coming soon
#define _GSM_USART USART2
#define _GSM_KEY_GPIO GPIOD
#define _GSM_KEY_PIN GPIO_PIN_7
#if(_GSM_MAIN_POWER == 1)
#define _GSM_PWR_CTRL_GPIO GPIOD
#define _GSM_PWR_CTRL_PIN GPIO_PIN_6
#endif
#if(_GSM_SIM_DETECTOR == 1)
#define _GSM_SIM_DET_GPIO GPIOA
#define _GSM_SIM_DET_PIN GPIO_PIN_2
#endif
#endif /*_GSMCONFIG_H_ */