1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2025-03-17 13:17:50 +01:00

Commit Graph

  • 47f06dd665 Remove unused method sn_decrement_by feature/binary-search-refactoring Patrick Rathje 2021-06-03 19:08:59 +02:00
  • 0272d9316b Record Binary Search Refactoring Patrick Rathje 2021-05-25 20:22:19 +02:00
  • 2dc75526bb Revert "Revert "Use development platformio version"" Patrick Rathje 2021-05-25 18:25:43 +02:00
  • d6c7dc7f25 Revert "Use development platformio version" Patrick Rathje 2021-05-25 18:08:10 +02:00
  • a87c8928c2 Update src/ens/sequencenumber.c Patrick Rathje 2021-05-25 17:50:11 +02:00
  • bb6be05d53 Records: Rewrite interator_init_timerange and binary_search to take care of invalid entries etc. H1ghBre4k3r 2021-05-18 22:30:59 +02:00
  • 4f1f5b6eab SN: Finish impl of sn_get_middle_sn to cover case of older > newer H1ghBre4k3r 2021-05-18 21:28:12 +02:00
  • b96fc5ec50 Config: Introduce CONFIG_ENS_MAX_CONTACTS as possibility to configure the max amount of contacts stored in flash H1ghBre4k3r 2021-05-18 17:09:07 +02:00
  • 70168608a5 ENS_FS: Fix wrong bitmask H1ghBre4k3r 2021-05-17 19:26:00 +02:00
  • fde55d947e Add TODOs for refactoring according to PR review and refactor ens_fs_write to return error, if entry is not only ones H1ghBre4k3r 2021-05-17 19:16:47 +02:00
  • 594035ed77 Config: Move parameters for MX25R64 into platformio.ini file H1ghBre4k3r 2021-05-17 15:23:53 +02:00
  • 873c84ae7f ENS_FS: Fix all wrong usages of fs->entry_size H1ghBre4k3r 2021-05-14 00:38:32 +02:00
  • b90c8d7ec6 ENS_FS: Only copy memory if read entry is valid H1ghBre4k3r 2021-05-14 00:34:48 +02:00
  • 796cf0f089 Fix multiple results of the PR: H1ghBre4k3r 2021-05-14 00:31:14 +02:00
  • 3abbc61757 Storage: Add 3 byte for metadata to record_t and use it in initialization for ens_fs H1ghBre4k3r 2021-05-03 23:52:56 +02:00
  • a9e7c6354d Prj-Conf: Remove already defined config parameters H1ghBre4k3r 2021-05-03 23:38:08 +02:00
  • ece832fbff Storage: Use correct datatypes for storage information H1ghBre4k3r 2021-05-03 23:36:07 +02:00
  • e36bfa751a Storage: Adjust record_information correctly when erasing pages and deleting contacts H1ghBre4k3r 2021-05-03 23:31:51 +02:00
  • 970a42aea8 Use record instead of contact as naming convention H1ghBre4k3r 2021-05-03 22:07:15 +02:00
  • 36ad239a87 Storage: Remove comment in load_contact H1ghBre4k3r 2021-05-03 21:59:17 +02:00
  • b3a2a6919b Sequence Numbers: Introduce GET_MASKED_SN macro H1ghBre4k3r 2021-05-03 21:47:02 +02:00
  • 30615a895d Records: In init_range, set finished to false, if there are contacts H1ghBre4k3r 2021-05-03 21:39:46 +02:00
  • 33f64b1caa Records: In iterator_clear, also set sequence numbers to 0 H1ghBre4k3r 2021-05-03 21:37:22 +02:00
  • f0762bf1dd Records: In iterator_next, use memcpy to next contact H1ghBre4k3r 2021-05-03 21:33:45 +02:00
  • 0f2307e668 Records: In iterator_next, combine if-guard with while-loop H1ghBre4k3r 2021-05-03 21:28:12 +02:00
  • dd2f0a1265 Records: In init_timerange, use init_range after finding start and end sn H1ghBre4k3r 2021-05-03 21:26:42 +02:00
  • 6b6a40d383 Use lock for ens_fs H1ghBre4k3r 2021-05-02 22:09:02 +02:00
  • b729d794bf Apply suggestions for ens_fs H1ghBre4k3r 2021-05-02 21:50:13 +02:00
  • 96eef185c9 Apply suggestions for covid.c H1ghBre4k3r 2021-05-02 21:35:58 +02:00
  • 0b681c6d28 Use environment extension for platformio.ini H1ghBre4k3r 2021-04-28 23:20:10 +02:00
  • c428971599 Remove unneeded text file H1ghBre4k3r 2021-04-28 23:02:35 +02:00
  • 534a61c471 Add locks for the storage H1ghBre4k3r 2021-04-27 00:16:46 +02:00
  • 80cba23823 Format ens files and add .clang-format file H1ghBre4k3r 2021-04-26 15:56:00 +02:00
  • 522a2aab9d Use binary search in init_timerange H1ghBre4k3r 2021-04-26 13:48:09 +02:00
  • aa17d584b3 Implement ens_records_iterator_init_timerange via binary search H1ghBre4k3r 2021-04-25 21:59:12 +02:00
  • 9e52f3c3c4 Fix incompatible pointer in ens_fs and comment unneeded variables out H1ghBre4k3r 2021-04-25 15:02:48 +02:00
  • 1101dd950f Remove unneeded contacts code and cleanup gatt-service.h H1ghBre4k3r 2021-04-25 14:57:52 +02:00
  • b2d89d5d03 Implement error codes and use them throughout ens_fs H1ghBre4k3r 2021-04-24 16:03:43 +02:00
  • c8607507b7 Use record_t for storing contacts H1ghBre4k3r 2021-04-21 17:58:16 +02:00
  • 9ae226d50b Implement correct read using crc and deleted flag and implement deletion H1ghBre4k3r 2021-04-14 18:47:55 +02:00
  • ca35b6a82c Delete page before incrementing sn H1ghBre4k3r 2021-04-13 14:29:07 +02:00
  • bf9ad9cbec Store CRC and 'not-deleted' flag in last byte of each entry H1ghBre4k3r 2021-04-13 01:22:12 +02:00
  • c4f035246b Store contacts in ens_fs H1ghBre4k3r 2021-04-12 19:52:06 +02:00
  • 30dc3c31eb Init ens_fs in storage.c H1ghBre4k3r 2021-04-12 19:31:15 +02:00
  • 725259cfce Use NVS to store storage information H1ghBre4k3r 2021-04-12 19:20:15 +02:00
  • 68ed7371cc Rename storage partition H1ghBre4k3r 2021-04-12 19:12:15 +02:00
  • cfa29284a3 Move sequence-number utils to ens folder aswell H1ghBre4k3r 2021-04-12 19:07:28 +02:00
  • d38996a021 Implement ens_fs and move ens stuff to ens directory H1ghBre4k3r 2021-04-12 19:04:46 +02:00
  • f367e22db6 Automatically increment sequence number H1ghBre4k3r 2021-03-31 17:06:38 +02:00
  • da234280b8 Add mutex for entire NVS H1ghBre4k3r 2021-03-31 16:31:58 +02:00
  • b8eb13f634 Increase NVS to 192 sectors, 16.384 byte each H1ghBre4k3r 2021-03-31 16:01:39 +02:00
  • 9ddbe15170 Add support for external onboard-storage H1ghBre4k3r 2021-03-31 15:57:12 +02:00
  • f1bee6fbe2 Handle contact deletion for contact_information H1ghBre4k3r 2021-03-24 16:18:04 +01:00
  • 09ac58c30b Rename sequence number functions to fit pattern H1ghBre4k3r 2021-03-24 15:52:02 +01:00
  • e74b58aab5 Correctly increase sequence number and save storage information to flash H1ghBre4k3r 2021-03-24 15:44:35 +01:00
  • de21af38f2 Add sn_mask to mask a sequence number H1ghBre4k3r 2021-03-23 18:11:11 +01:00
  • b98eea970c Add records api, move sequence numbers into own file, adjust storage api H1ghBre4k3r 2021-03-17 14:49:07 +01:00
  • 0a5323674a Add storage changes H1ghBre4k3r 2021-03-11 00:32:36 +01:00
  • 9b55b3c8fd Implement api for storage H1ghBre4k3r 2021-02-18 13:45:29 +01:00
  • d48245657e get_contacts_for_period H1ghBre4k3r 2021-02-03 19:39:01 +01:00
  • a78bc828fc Add store_period_contacts H1ghBre4k3r 2021-02-01 23:17:48 +01:00
  • 917f103999 Move type declarations in contacts.h H1ghBre4k3r 2021-02-01 22:57:53 +01:00
  • fa8d82c496 Move period_contact_t to header file H1ghBre4k3r 2021-01-28 00:24:22 +01:00
  • f56a2dca54 Add DS_Store to .gitignore H1ghBre4k3r 2021-01-27 01:32:28 +01:00
  • 8583a3c9b0 Enable flash in prj conf H1ghBre4k3r 2021-01-26 16:24:50 +01:00
  • a9cfe53c10 Add 0 as success return value for init_storage H1ghBre4k3r 2021-01-26 16:16:17 +01:00
  • ae76b43ae0 Add storage initialization H1ghBre4k3r 2021-01-26 16:14:58 +01:00
  • c554a89711 Add device tree overlay and ini entry for nrf52840_mdk H1ghBre4k3r 2021-01-26 15:50:51 +01:00
  • 3bb569ccf4 Use development platformio version Patrick Rathje 2021-04-23 15:33:36 +02:00
  • e4a24a3dd0 Use new BLE scan parameter option to filter Patrick Rathje 2021-04-23 15:23:56 +02:00
  • bc8db22673 Use development platformio version fix/scan_options Patrick Rathje 2021-04-23 15:33:36 +02:00
  • 2ba3ded232 Use new BLE scan parameter option to filter Patrick Rathje 2021-04-23 15:23:56 +02:00
  • 70ac84f84a Add upload override for nrf recovery feature/pinetime Patrick Rathje 2021-02-19 11:07:52 +01:00
  • a531147375 Let PIO handle u8g2 lib Patrick Rathje 2021-02-19 00:31:25 +01:00
  • d69652f008 Restore original mbedtls heap size Tobias Schramm 2021-02-09 15:44:35 +01:00
  • 83fb65cd44 Fix battery support ifdef guards Tobias Schramm 2021-02-09 15:32:16 +01:00
  • afc476ff32 Use non-default Zephyr kernel config for pinetime Tobias Schramm 2021-02-09 15:29:48 +01:00
  • d381015cd9 Check BATTERY_SOC_SUPPORTED flag Tobias Schramm 2021-02-09 14:50:40 +01:00
  • dfdd703c8d Hack: define j-link as onboard Tobias Schramm 2021-02-09 14:39:38 +01:00
  • a0bf2ba730 Add pintime_devkit0 board spec Tobias Schramm 2021-02-09 14:38:34 +01:00
  • 17de4f2523 Use battery only if specified in devicetree Tobias Schramm 2021-02-09 14:34:35 +01:00
  • 0dd0ddecec Add license headers Tobias Schramm 2021-02-09 14:20:57 +01:00
  • 76a55726e8 Print SOC with constant length Tobias Schramm 2021-02-09 13:59:17 +01:00
  • c8f40160bb Implement SOC estimation Tobias Schramm 2021-02-09 13:48:33 +01:00
  • 83bec4997b Add simple-battery binding Tobias Schramm 2021-02-09 13:48:11 +01:00
  • 5a66a00151 Clean up platformio.ini Tobias Schramm 2021-02-09 10:39:26 +01:00
  • dbf0b8af2a Remove superfluous config options Tobias Schramm 2021-02-09 10:29:28 +01:00
  • bf203ab6ce Fix typo Tobias Schramm 2021-02-09 10:19:08 +01:00
  • a9963c4ca6 Add support for measuring battery voltage Tobias Schramm 2021-02-09 09:57:24 +01:00
  • 1749cc2629 Show last seen identifiers on pinetime display Tobias Schramm 2021-02-08 22:07:32 +01:00
  • e52b37d0d5 Add powersave and string drawing APIs Tobias Schramm 2021-02-08 21:03:52 +01:00
  • d6270ffb3f Add display support Tobias Schramm 2021-02-08 20:50:53 +01:00
  • 959e946ce4 Provide zephyr via github Tobias Schramm 2021-02-04 23:33:44 +01:00
  • 42b2001380 Add PineTime devkit target Tobias Schramm 2021-02-04 22:53:06 +01:00
  • a4f5db0df2 Remove line at the end of readme feature/awesome-feature Patrick Rathje 2021-01-15 12:48:43 +01:00
  • 45de4666c8
    Merge pull request #9 from CovidBraceletPrj/feature/io-component Patrick Rathje 2020-12-22 19:47:04 +01:00
  • 021c8fbc9f Move IO initialization and handling to separate files Patrick Rathje 2020-12-22 19:41:01 +01:00
  • 4950d5ebb4
    Merge pull request #7 from CovidBraceletPrj/feature/fix-missing-period-identififer-key Patrick Rathje 2020-12-09 11:18:53 +01:00
  • d451e6a131 Derive period identifier key feature/fix-missing-period-identififer-key Patrick Rathje 2020-12-09 11:13:51 +01:00
  • 53196288d6
    Merge pull request #6 from CovidBraceletPrj/feature/measure_performance Patrick Rathje 2020-11-19 16:59:49 +01:00