Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0002734

Browse files
committedNov 13, 2023
GSM: edge_control add pins definitions
1 parent dc22e05 commit 0002734

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed
 

‎libraries/GSM/src/GSM.h

+22-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,28 @@
3333
#include "CMUXClass.h"
3434
#include "PTYSerial.h"
3535

36-
#define MBED_CONF_GEMALTO_CINTERION_TX PA_0
37-
#define MBED_CONF_GEMALTO_CINTERION_RX PI_9
38-
#define MBED_CONF_GEMALTO_CINTERION_RTS PI_10
39-
#define MBED_CONF_GEMALTO_CINTERION_CTS PI_13
40-
#define MBED_CONF_GEMALTO_CINTERION_RST PJ_10
41-
#define MBED_CONF_GEMALTO_CINTERION_ON PJ_7
36+
if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
37+
#define MBED_CONF_GEMALTO_CINTERION_TX PA_0
38+
#define MBED_CONF_GEMALTO_CINTERION_RX PI_9
39+
#define MBED_CONF_GEMALTO_CINTERION_RTS PI_10
40+
#define MBED_CONF_GEMALTO_CINTERION_CTS PI_13
41+
#define MBED_CONF_GEMALTO_CINTERION_RST PJ_10
42+
#define MBED_CONF_GEMALTO_CINTERION_ON PJ_7
43+
#elif defined (ARDUINO_EDGE_CONTROL)
44+
/* IMPORTANT: turn on the module's 5V on demand by calling
45+
pinMode(ON_MKR2, OUTPUT);
46+
digitalWrite(ON_MKR2, HIGH);
47+
*/
48+
#define MBED_CONF_GEMALTO_CINTERION_TX p24
49+
#define MBED_CONF_GEMALTO_CINTERION_RX p25
50+
#define MBED_CONF_GEMALTO_CINTERION_RTS NC
51+
#define MBED_CONF_GEMALTO_CINTERION_CTS NC
52+
#define MBED_CONF_GEMALTO_CINTERION_RST p31
53+
#define MBED_CONF_GEMALTO_CINTERION_ON p2
54+
#else
55+
#error Gemalto Cinterion cellular connectivity not supported
56+
#endif
57+
4258
#define MBED_CONF_APP_SOCK_TYPE 1
4359

4460
#if defined __has_include

0 commit comments

Comments
 (0)
Please sign in to comment.