1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2024-05-29 08:48:15 +02:00
Commit Graph

108 Commits

Author SHA1 Message Date
Patrick Rathje
612b638433 Refactor and Clean Project for essential functionality 2022-05-27 21:52:29 +02:00
Patrick Rathje
6f9de16bd1 wip 2022-05-25 22:08:36 +02:00
Patrick Rathje
2ff789ab25 Add time_get_unix_seconds utility 2022-05-25 20:47:32 +02:00
Patrick Rathje
55da0bb7d6 Move header files into include directory 2022-05-25 20:26:38 +02:00
H1ghBre4k3r
b7053cafdf Add check for tests 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
790064be7f Fix wrong config variable naming 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
22697403f7 Finalize refactorings of contacts and bloom module 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
cd780b122d First refactorings for contacts and bloom api 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
26d55cc91f Save temp state 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
90b756eb3d Fix wrong binary operation in bloom filter and improve infected interval spreading 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
3a2dc985f4 Add WIP bloom stage (rewrite git history) 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
a720bb7d9e Comment out creation of bloom filter 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
2d0c298aa0 Rename bloom_init to bloom_create 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
76ce19d94a Contacts: Add first draft of test functions 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
7575ab853f Add first version of a bloom filter 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
f7587911d2 Contacts: optimize iterator init if periods overlap 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
ea492e11f9 Measure performance for multiple infected RPIs 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
ad4dcd013e Contacts: Remove unneeded function for retrieving infected keys for period 2021-12-10 15:30:21 +01:00
H1ghBre4k3r
4399810691 Contacts: Add possibility to retrieve number of infected contacts for a period key 2021-12-10 15:30:21 +01:00
Hendrik Sauer
152fc4fb7e Add configuration options to test protobuf unpacking at startup 2021-12-08 18:09:00 +01:00
Hendrik Sauer
c172fbced8 Add some comments 2021-12-08 18:09:00 +01:00
Hendrik Sauer
a1e7a83c84 Add doc comments 2021-12-08 18:09:00 +01:00
Hendrik Sauer
7a0fa5b30c Measure time 2021-12-08 18:09:00 +01:00
Hendrik Sauer
8f532ac7e4 Make the packing and unpacking work 2021-12-08 18:09:00 +01:00
Hendrik Sauer
a50b6746c0 Implement functions to work with exposure keys 2021-12-08 18:09:00 +01:00
Hendrik Sauer
a9941c5cb9 Add protobuf library and make sure project compiles 2021-12-08 18:09:00 +01:00
Hendrik Sauer
6aa8608d44 Add doxygen comments 2021-12-08 16:44:36 +01:00
Patrick Rathje
df102e0002 Remove unused method sn_decrement_by 2021-07-23 11:48:34 +02:00
Patrick Rathje
ecb7bb05ea Record Binary Search Refactoring 2021-07-23 11:48:34 +02:00
Hendrik Sauer
5c47dbb2e0 Use zephyr config instead of own variable 2021-06-24 12:59:33 +02:00
Hendrik Sauer
d70a5ab412 Use suggested sleep time for display thread 2021-06-24 12:59:33 +02:00
Hendrik Sauer
634444e1ef Use bigger scope for optional definition for all display functions 2021-06-24 12:59:33 +02:00
Hendrik Sauer
a9a8a71c10 Apply suggested changes from review 2021-06-24 12:59:33 +02:00
Hendrik Sauer
66510253b8 Apply suggested changes from review 2021-06-24 12:59:33 +02:00
Hendrik Sauer
158a8c54b1 A little cleanup 2021-06-24 12:59:33 +02:00
Hendrik Sauer
62f31a3282 Add thread to handle lvgl events 2021-06-24 12:59:33 +02:00
Hendrik Sauer
137c042410 Resolve rebase conflict 2021-06-24 12:59:33 +02:00
Hendrik Sauer
b627efc44b Dummy functions in case of no display 2021-06-24 12:59:33 +02:00
Hendrik Sauer
f783970389 Add display interface and fix configuration for boards without display 2021-06-24 12:59:33 +02:00
Hendrik Sauer
75f5a8cf94 Implement UI prototype 2021-06-24 12:59:33 +02:00
Hendrik Sauer
d33ec2580b Enable native build 2021-06-24 12:59:33 +02:00
Patrick Rathje
a87c8928c2 Update src/ens/sequencenumber.c
Support equal values of older and newer
2021-05-25 18:06:15 +02:00
H1ghBre4k3r
bb6be05d53 Records: Rewrite interator_init_timerange and binary_search to take care of invalid entries etc. 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
4f1f5b6eab SN: Finish impl of sn_get_middle_sn to cover case of older > newer 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
b96fc5ec50 Config: Introduce CONFIG_ENS_MAX_CONTACTS as possibility to configure the max amount of contacts stored in flash 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
70168608a5 ENS_FS: Fix wrong bitmask 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
fde55d947e Add TODOs for refactoring according to PR review and refactor ens_fs_write to return error, if entry is not only ones 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
873c84ae7f ENS_FS: Fix all wrong usages of fs->entry_size 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
b90c8d7ec6 ENS_FS: Only copy memory if read entry is valid 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
796cf0f089 Fix multiple results of the PR:
- cleanup of sequence number utilites
- dynamic calculation of nvs sectors for fs information
- usage of buffer in ens_fs
- check for max entry size (page size)
- usage of interal entry size, which is always the next larger power of 2 to a given entry size
2021-05-25 18:06:15 +02:00