Exportable version of WizziLab's modem driver.
Diff: src/modem_ref.cpp
- Revision:
- 61:820395fc5572
- Parent:
- 60:08efaaca0e83
- Child:
- 62:75d819d68e5f
diff -r 08efaaca0e83 -r 820395fc5572 src/modem_ref.cpp --- a/src/modem_ref.cpp Fri Feb 19 10:59:42 2021 +0000 +++ b/src/modem_ref.cpp Tue Sep 07 15:58:51 2021 +0000 @@ -61,7 +61,8 @@ //alp_payload_print(alp); u32 len = alp_payload_to_buf(alp, buf, 0, PKT_MAX_SIZE); - + + ASSERT(g_modem.send != NULL, "NULL send function!\r\n"); g_modem.send(type, buf, len); alp_payload_free(alp); @@ -434,6 +435,11 @@ g_modem.lwan_cb = callbacks; } +void modem_ref_set_boot_cb(fx_boot_t* boot_cb) +{ + g_modem.cb->boot = boot_cb; +} + void modem_ref_alp(void* itf, alp_payload_t* alp_user, alp_payload_t** alp_rsp, int id) { alp_payload_t* alp = NULL;