Data reception demo.

Dependencies:   modem_ref_helper

Committer:
Jeej
Date:
Thu Oct 11 14:46:39 2018 +0000
Revision:
11:7df24b241621
Parent:
10:c262c5feac24
Child:
12:404a3ca64a44
Activate stack errors. Relaxed modem version check.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeej 0:02418479dcf7 1 #include "files.h"
Jeej 0:02418479dcf7 2 #include "hwcfg.h"
Jeej 0:02418479dcf7 3
Jeej 0:02418479dcf7 4 #include "kal_fs.h"
Jeej 0:02418479dcf7 5
Jeej 0:02418479dcf7 6 #define __DEVICE_ID__ 0x00000016
Jeej 0:02418479dcf7 7
Jeej 0:02418479dcf7 8 const alp_file_header_t h_rev = {
Jeej 10:c262c5feac24 9 .perm = RWR_R_,
Jeej 0:02418479dcf7 10 .prop = FS_PERMANENT_NOTIF,
Jeej 0:02418479dcf7 11 .afid = FID_ACTP_RPT_FULL,
Jeej 0:02418479dcf7 12 .ifid = IFID_REPORT,
Jeej 3:e9ea4d325c01 13 .size = HAL_U32_BYTE_SWAP((uint32_t)SIZE_HOST_REV),
Jeej 3:e9ea4d325c01 14 .alloc= HAL_U32_BYTE_SWAP((uint32_t)SIZE_HOST_REV)
Jeej 0:02418479dcf7 15 };
Jeej 0:02418479dcf7 16
Jeej 0:02418479dcf7 17 const revision_t f_rev = {
Jeej 0:02418479dcf7 18 .manufacturer_id = __MANUFACTURER_ID__,
Jeej 0:02418479dcf7 19 /// Device ID: Arbitrary number, at user/customer choice
Jeej 0:02418479dcf7 20 .device_id = __DEVICE_ID__,
Jeej 0:02418479dcf7 21 /// Hardware Board ID:
Jeej 0:02418479dcf7 22 .hw_version = __HW_VERSION__,
Jeej 0:02418479dcf7 23 /// Firmware Version: made of
Jeej 0:02418479dcf7 24 /// - major,minor and patch indexes
Jeej 0:02418479dcf7 25 /// - fw_id : "build-flavour"
Jeej 0:02418479dcf7 26 /// FW_ID | MAJOR | MINOR | PATCH | HASH |
Jeej 0:02418479dcf7 27 // 1B | 1B | 1B | 2B | 4B |
Jeej 0:02418479dcf7 28 .fw_version.id = 0,
Jeej 0:02418479dcf7 29 .fw_version.major = 1,
Jeej 0:02418479dcf7 30 .fw_version.minor = 0,
Jeej 10:c262c5feac24 31 .fw_version.patch = 2,
Jeej 0:02418479dcf7 32 .fw_version.hash = 0x00000000,
Jeej 5:a44b6f60bfc7 33 /// Not used
Jeej 5:a44b6f60bfc7 34 .cup_max_size = 0x00000000
Jeej 0:02418479dcf7 35 };
Jeej 0:02418479dcf7 36
Jeej 0:02418479dcf7 37 const alp_file_header_t h_string_file = {
Jeej 10:c262c5feac24 38 .perm = RWRWRW,
Jeej 0:02418479dcf7 39 .prop = FS_VOLATILE,
Jeej 3:e9ea4d325c01 40 .afid = 0,
Jeej 3:e9ea4d325c01 41 .ifid = 0,
Jeej 0:02418479dcf7 42 .size = HAL_U32_BYTE_SWAP((uint32_t)SIZE_STRING_FILE),
Jeej 0:02418479dcf7 43 .alloc= HAL_U32_BYTE_SWAP((uint32_t)SIZE_STRING_FILE)
Jeej 0:02418479dcf7 44 };
Jeej 0:02418479dcf7 45
Jeej 0:02418479dcf7 46 uint8_t f_string_file[SIZE_STRING_FILE] = "Default string value";
Jeej 0:02418479dcf7 47
Jeej 3:e9ea4d325c01 48 const alp_file_header_t h_status_file = {
Jeej 10:c262c5feac24 49 .perm = RWRWR_,
Jeej 3:e9ea4d325c01 50 .prop = FS_VOLATILE_NOTIF,
Jeej 3:e9ea4d325c01 51 .afid = FID_ACTP_RPT_FULL,
Jeej 3:e9ea4d325c01 52 .ifid = IFID_REPORT,
Jeej 3:e9ea4d325c01 53 .size = HAL_U32_BYTE_SWAP((uint32_t)SIZE_STATUS_FILE),
Jeej 3:e9ea4d325c01 54 .alloc= HAL_U32_BYTE_SWAP((uint32_t)SIZE_STATUS_FILE)
Jeej 3:e9ea4d325c01 55 };