WizziLab / modem_ref_helper

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_Localisation D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_CodeUpgradeProtocol D7A_1x_demo_LoRaWAN ... more

Files at this revision

API Documentation at this revision

Comitter:
Jeej
Date:
Thu Dec 21 14:31:07 2017 +0000
Parent:
19:62c45cd64372
Child:
21:21a74abd5cb5
Commit message:
Changed confusing pin names.

Changed in this revision

hwcfg.h Show annotated file Show diff for this revision Revisions of this file
modem_ref.lib Show annotated file Show diff for this revision Revisions of this file
modem_ref_helper.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/hwcfg.h	Thu Dec 14 19:16:49 2017 +0000
+++ b/hwcfg.h	Thu Dec 21 14:31:07 2017 +0000
@@ -7,10 +7,10 @@
     // -----------------------------------------------
     // Hardware configuration for sh2001 / sh2030
     // -----------------------------------------------
-    #define MODEM_PIN_TX            (D10)
-    #define MODEM_PIN_RX            (D2)
-    #define MODEM_PIN_IRQ_OUT       (D13)
-    #define MODEM_PIN_IRQ_IN        (D9)
+    #define MODEM_PIN_RX            (D10)
+    #define MODEM_PIN_TX            (D2)
+    #define MODEM_PIN_IRQ_IN        (D13)
+    #define MODEM_PIN_IRQ_OUT       (D9)
     #define MODEM_PIN_RESET         (A3)
     //#define DEBUG_LED               (NC)
     #define DEBUG_BUTTON            (USER_BUTTON)
@@ -24,10 +24,10 @@
     // -----------------------------------------------
     // Hardware configuration for sh2050
     // -----------------------------------------------
-    #define MODEM_PIN_TX            (D5)
-    #define MODEM_PIN_RX            (D4)
-    #define MODEM_PIN_IRQ_OUT       (D11)
-    #define MODEM_PIN_IRQ_IN        (D10)
+    #define MODEM_PIN_RX            (D5)
+    #define MODEM_PIN_TX            (D4)
+    #define MODEM_PIN_IRQ_IN        (D11)
+    #define MODEM_PIN_IRQ_OUT       (D10)
     #define MODEM_PIN_RESET         (D12)
     #define DEBUG_LED               (D13) // LED1
     #define DEBUG_BUTTON            (D9)
--- a/modem_ref.lib	Thu Dec 14 19:16:49 2017 +0000
+++ b/modem_ref.lib	Thu Dec 21 14:31:07 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/WizziLab/code/modem_ref/#d5018a680915
+https://developer.mbed.org/teams/WizziLab/code/modem_ref/#db4d6bef62f3
--- a/modem_ref_helper.cpp	Thu Dec 14 19:16:49 2017 +0000
+++ b/modem_ref_helper.cpp	Thu Dec 21 14:31:07 2017 +0000
@@ -160,7 +160,7 @@
     };
     
     // Open modem Com port
-    g_modem_com = new WizziCom(MODEM_PIN_TX, MODEM_PIN_RX, MODEM_PIN_IRQ_OUT, MODEM_PIN_IRQ_IN);
+    g_modem_com = new WizziCom(MODEM_PIN_RX, MODEM_PIN_TX, MODEM_PIN_IRQ_IN, MODEM_PIN_IRQ_OUT);
     
     // Hardware reset
     DigitalOut reset_low(MODEM_PIN_RESET, 0);
@@ -176,6 +176,7 @@
     DigitalIn reset_release(MODEM_PIN_RESET);
     
     // Wait for first boot packet
+    HELPER_PRINT("Waiting boot packet...\n");
     boot.wait();
     
     // Re-open with user callbacks