Ping pong app demo.

Dependencies:   modem_ref_helper DebouncedInterrupt

Files at this revision

API Documentation at this revision

Comitter:
Jeej
Date:
Tue Sep 21 16:36:38 2021 +0000
Parent:
13:343ca4102739
Commit message:
All URCs to URC callback.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
modem_callbacks.cpp Show annotated file Show diff for this revision Revisions of this file
modem_callbacks.h Show annotated file Show diff for this revision Revisions of this file
modem_d7a.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 21 08:49:29 2021 +0000
+++ b/main.cpp	Tue Sep 21 16:36:38 2021 +0000
@@ -186,11 +186,8 @@
     .flush      = my_flush,
     .remove     = my_delete,
     .udata      = my_udata,
-    .lqual      = my_lqual,
-    .ldown      = my_ldown,
     .reset      = my_reset,
     .boot       = my_boot,
-    .busy       = my_busy,
 };
 
 /*** Main function ------------------------------------------------------------- ***/
--- a/modem_callbacks.cpp	Tue Sep 21 08:49:29 2021 +0000
+++ b/modem_callbacks.cpp	Tue Sep 21 16:36:38 2021 +0000
@@ -29,16 +29,6 @@
     modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
-void my_lqual(u8 ifid, int per)
-{
-    PRINT("Interface File [%3d] LQUAL : %d%% PER\r\n", ifid, per);
-}
-
-void my_ldown(u8 ifid)
-{
-    PRINT("Interface File [%3d] LDOWN\r\n", ifid);
-}
-
 void my_reset(void)
 {
     PRINT("Restarting application...\r\n");
@@ -52,21 +42,4 @@
     
     // Modem re-booted, restart APP
     my_reset();
-}
-
-void my_busy(u8 busy)
-{
-    if (busy)
-    {
-        PRINT("Modem Busy\r\n");
-        
-        /* Stop report, do not use modem */
-        /* Wait for modem reboot or modem not busy */
-    }
-    else
-    {
-        PRINT("Modem not Busy\r\n");
-        
-        /* Resume reports */
-    }
 }
\ No newline at end of file
--- a/modem_callbacks.h	Tue Sep 21 08:49:29 2021 +0000
+++ b/modem_callbacks.h	Tue Sep 21 16:36:38 2021 +0000
@@ -6,8 +6,5 @@
 void my_flush(u8 action, u8 fid, int id);
 void my_delete(u8 action, u8 fid, int id);
 void my_udata(alp_payload_t* alp);
-void my_lqual(u8 ifid, int per);
-void my_ldown(u8 ifid);
 void my_reset(void);
-void my_boot(u8 cause, u16 number);
-void my_busy(u8 busy);
\ No newline at end of file
+void my_boot(u8 cause, u16 number);
\ No newline at end of file
--- a/modem_d7a.lib	Tue Sep 21 08:49:29 2021 +0000
+++ b/modem_d7a.lib	Tue Sep 21 16:36:38 2021 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/WizziLab/code/modem_ref_helper/#cbe558f136a4
+https://developer.mbed.org/teams/WizziLab/code/modem_ref_helper/#5146f44cde83