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:
- 31:ab9bfdbc6b44
- Parent:
- 30:d775c1409849
- Child:
- 32:1e8d2d1c2946
diff -r d775c1409849 -r ab9bfdbc6b44 src/d7a_modem.cpp --- a/src/d7a_modem.cpp Wed May 25 08:23:15 2016 +0000 +++ b/src/d7a_modem.cpp Thu Jun 02 09:24:52 2016 +0000 @@ -28,7 +28,7 @@ FPRINT("\r\n"); g_modem_ctx.ressource = new Semaphore(1); - g_modem_ctx.thread = new Thread(d7a_modem_thread, NULL, osPriorityBelowNormal, DEFAULT_STACK_SIZE); + g_modem_ctx.thread = new Thread(d7a_modem_thread, NULL, osPriorityHigh, DEFAULT_STACK_SIZE); g_modem_ctx.waiting_count = 0; g_modem_ctx.ready_count = 0; @@ -185,14 +185,14 @@ d7a_fs_read(2, &rev, 0, sizeof(revision_t)); d7a_fs_wait_done(TO_FS); - 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"); + PRINT("------------ D7A Modem infos ------------\r\n"); + PRINT("| 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]); + PRINT("| Manufacturer ID: %08X |\r\n", rev.manufacturer_id); + PRINT("| Device ID: %08X |\r\n", rev.device_id); + PRINT("| Hardware version: %08X |\r\n", rev.hw_version); + PRINT("| Firmware version: %d-%d.%d.%d-%08x \t|\r\n", rev.fw_version.id, rev.fw_version.major, rev.fw_version.minor, rev.fw_version.patch, rev.fw_version.hash); + PRINT("| File system CRC: 0x%08x |\r\n", rev.fs_crc); + PRINT("-----------------------------------------\r\n"); g_modem_ctx.ressource->release(); }