![](/media/cache/group/WizziLab_Logo_Black.png.50x50_q85.png)
Scan nearby anchors and send result for location engine.
Dependencies: modem_ref_helper DebouncedInterrupt
files.cpp@1:4534345afb6b, 2019-11-13 (annotated)
- Committer:
- Jeej
- Date:
- Wed Nov 13 13:51:15 2019 +0000
- Revision:
- 1:4534345afb6b
- Parent:
- 0:83836029943b
Use custom AP.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jeej | 0:83836029943b | 1 | #include "files.h" |
Jeej | 0:83836029943b | 2 | #include "hwcfg.h" |
Jeej | 0:83836029943b | 3 | |
Jeej | 0:83836029943b | 4 | #include "kal_fs.h" |
Jeej | 0:83836029943b | 5 | |
Jeej | 0:83836029943b | 6 | #define __DEVICE_ID__ 0x0000001E |
Jeej | 0:83836029943b | 7 | |
Jeej | 0:83836029943b | 8 | alp_file_header_t h_rev = { |
Jeej | 0:83836029943b | 9 | .perm = RWR_R_, |
Jeej | 0:83836029943b | 10 | .prop = FS_PERMANENT_NOTIF, |
Jeej | 0:83836029943b | 11 | .afid = FID_ACTP_RPT_FULL, |
Jeej | 0:83836029943b | 12 | .ifid = IFID_REPORT, |
Jeej | 0:83836029943b | 13 | .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(revision_t)), |
Jeej | 0:83836029943b | 14 | .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(revision_t)) |
Jeej | 0:83836029943b | 15 | }; |
Jeej | 0:83836029943b | 16 | |
Jeej | 0:83836029943b | 17 | revision_t f_rev = { |
Jeej | 0:83836029943b | 18 | .manufacturer_id = __MANUFACTURER_ID__, |
Jeej | 0:83836029943b | 19 | /// Device ID: Arbitrary number, at user/customer choice |
Jeej | 0:83836029943b | 20 | .device_id = __DEVICE_ID__, |
Jeej | 0:83836029943b | 21 | /// Hardware Board ID: |
Jeej | 0:83836029943b | 22 | .hw_version = __HW_VERSION__, |
Jeej | 0:83836029943b | 23 | /// Firmware Version: made of |
Jeej | 0:83836029943b | 24 | /// - major,minor and patch indexes |
Jeej | 0:83836029943b | 25 | /// - fw_id : "build-flavour" |
Jeej | 0:83836029943b | 26 | /// FW_ID | MAJOR | MINOR | PATCH | HASH | |
Jeej | 0:83836029943b | 27 | // 1B | 1B | 1B | 2B | 4B | |
Jeej | 0:83836029943b | 28 | .fw_version.id = 0, |
Jeej | 0:83836029943b | 29 | .fw_version.major = 1, |
Jeej | 0:83836029943b | 30 | .fw_version.minor = 0, |
Jeej | 0:83836029943b | 31 | .fw_version.patch = 0, |
Jeej | 0:83836029943b | 32 | .fw_version.hash = 0x20191113, |
Jeej | 0:83836029943b | 33 | /// Not used |
Jeej | 0:83836029943b | 34 | .cup_max_size = 0x00000000 |
Jeej | 0:83836029943b | 35 | }; |
Jeej | 0:83836029943b | 36 | |
Jeej | 0:83836029943b | 37 | alp_file_header_t h_status = { |
Jeej | 0:83836029943b | 38 | .perm = RWRWR_, |
Jeej | 0:83836029943b | 39 | .prop = FS_VOLATILE, |
Jeej | 0:83836029943b | 40 | .afid = 0, |
Jeej | 0:83836029943b | 41 | .ifid = 0, |
Jeej | 0:83836029943b | 42 | .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(status_t)), |
Jeej | 0:83836029943b | 43 | .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(status_t)) |
Jeej | 0:83836029943b | 44 | }; |
Jeej | 0:83836029943b | 45 | |
Jeej | 0:83836029943b | 46 | status_t f_status = { |
Jeej | 0:83836029943b | 47 | .nb = 0, |
Jeej | 0:83836029943b | 48 | }; |