Ping pong app demo.

Dependencies:   modem_ref_helper DebouncedInterrupt

Revision:
13:343ca4102739
Parent:
10:b69fe2a98432
Child:
14:8b8a61233e8d
diff -r d621c88d5c49 -r 343ca4102739 modem_callbacks.cpp
--- a/modem_callbacks.cpp	Thu May 28 09:13:00 2020 +0000
+++ b/modem_callbacks.cpp	Tue Sep 21 08:49:29 2021 +0000
@@ -1,33 +1,32 @@
-#include "modem_ref_helper.h"
-
+#include "modem_d7a.h"
 
 // ============================================================}}}
 
 // Callbacks to MODEM's ALP requests
 // ============================================================{{{
-void my_read(u8 fid, u32 offset, u32 length, int id)
+void my_read(u8 action, u8 fid, u32 offset, u32 length, int id)
 {
-    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
+    modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
-void my_write(u8 fid, void *data, u32 offset, u32 length, int id)
+void my_write(u8 action, u8 fid, void *data, u32 offset, u32 length, int id)
 {
-    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
+    modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
-void my_read_fprop(u8 fid, int id)
+void my_read_fprop(u8 action, u8 fid, int id)
 {
-    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
+    modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
-void my_flush(u8 fid, int id)
+void my_flush(u8 action, u8 fid, int id)
 {
-    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
+    modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
-void my_delete(u8 fid, int id)
+void my_delete(u8 action, u8 fid, int id)
 {
-    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
+    modem_ref_respond(action, ALP_ERR_FILE_NOT_FOUND, id);
 }
 
 void my_lqual(u8 ifid, int per)