Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: src/d7a_modem.cpp
- Revision:
- 27:934ab7455115
- Parent:
- 26:9f0b9833cac6
- Child:
- 28:0376b97b4b55
diff -r 9f0b9833cac6 -r 934ab7455115 src/d7a_modem.cpp --- a/src/d7a_modem.cpp Thu Mar 31 14:48:50 2016 +0000 +++ b/src/d7a_modem.cpp Fri Apr 01 10:55:30 2016 +0000 @@ -123,6 +123,28 @@ d7a_modem_wait_ready(); } +void d7a_modem_infos( void ) +{ + uint8_t uid[8]; + revision_t rev; + + d7a_fs_read(0, uid, 0, 8); + d7a_fs_wait_done(); + + d7a_fs_read(2, &rev, 0, sizeof(revision_t)); + d7a_fs_wait_done(); + + IPRINT("--- D7A Modem infos ---\r\n"); + IPRINT("UID: %02X%02X%02X%02X%02X%02X%02X%02X\r\n", uid[0], uid[1], uid[2], uid[3], uid[4], uid[5], uid[6], uid[7]); + IPRINT("Manufacturer ID: %08X\r\n", rev.manufacturer_id); + IPRINT("Device ID: %08X\r\n", rev.device_id); + IPRINT("Hardware version: %08X\r\n", rev.hw_version); + IPRINT("Firmware version: %d-%d.%d.%d-%08x\r\n", rev.fw_version.id, rev.fw_version.major, rev.fw_version.minor, rev.fw_version.patch, rev.fw_version.hash); + IPRINT("File system CRC: 0x%08x\r\n", rev.fs_crc); + IPRINT("-----------------------\r\n"); +} + + void d7a_modem_thread(const void *p) { FPRINT("\r\n");