1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2024-12-26 14:39:59 +01:00

142 Commits

Author SHA1 Message Date
Hendrik Sauer
a9941c5cb9 Add protobuf library and make sure project compiles 2021-12-08 18:09:00 +01:00
Patrick Rathje
d8b5682a94 Apply suggestions from code review 2021-12-08 16:44:36 +01:00
Hendrik Sauer
faa817533c Add article to readme 2021-12-08 16:44:36 +01:00
Hendrik Sauer
6aa8608d44 Add doxygen comments 2021-12-08 16:44:36 +01:00
Hendrik Sauer
a905091666 Simulate flash for native posix 2021-07-23 11:52:57 +02: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
H1ghBre4k3r
7909c7968f Set fix platform version, so Zephyr v2.5.0 is always used 2021-07-23 11:47:50 +02:00
Patrick Rathje
b4b7d925f7 Run build and test actions on pull_requests too
Signed-off-by: Patrick Rathje <git@patrickrathje.de>
2021-07-23 11:46:07 +02:00
Hendrik Sauer
ca90702af6 Fix CMakeLists so Platformio works properly again 2021-06-24 12:59:33 +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
7a7914c7a9 Improve native build 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
6b58493305 Fix configuration 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
2dc75526bb Revert "Revert "Use development platformio version""
This reverts commit d6c7dc7f25c0eb6ef4d85adc76feb1bab6fc5fdd.
2021-05-25 18:25:43 +02:00
Patrick Rathje
d6c7dc7f25 Revert "Use development platformio version"
This reverts commit 3bb569ccf4a7346385654284de2c794aa418e20f.
2021-05-25 18:08:10 +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
594035ed77 Config: Move parameters for MX25R64 into platformio.ini file 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
H1ghBre4k3r
3abbc61757 Storage: Add 3 byte for metadata to record_t and use it in initialization for ens_fs 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
a9e7c6354d Prj-Conf: Remove already defined config parameters 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
ece832fbff Storage: Use correct datatypes for storage information 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
e36bfa751a Storage: Adjust record_information correctly when erasing pages and deleting contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
970a42aea8 Use record instead of contact as naming convention 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
36ad239a87 Storage: Remove comment in load_contact 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
b3a2a6919b Sequence Numbers: Introduce GET_MASKED_SN macro 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
30615a895d Records: In init_range, set finished to false, if there are contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
33f64b1caa Records: In iterator_clear, also set sequence numbers to 0 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
f0762bf1dd Records: In iterator_next, use memcpy to next contact 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
0f2307e668 Records: In iterator_next, combine if-guard with while-loop 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
dd2f0a1265 Records: In init_timerange, use init_range after finding start and end sn 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
6b6a40d383 Use lock for ens_fs 2021-05-25 18:06:15 +02:00
H1ghBre4k3r
b729d794bf Apply suggestions for ens_fs 2021-05-25 18:06:15 +02:00