-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ledger API #2660
Ledger API #2660
Conversation
a6722ab
to
712b0e0
Compare
c5b99ab
to
9f396c3
Compare
88cdcef
to
b9e5bb1
Compare
Could you please add doxygen comments in the new wiring headers? The comments are automatically parsed by Workbench (VS Code) and appear as tips when implementing those classes/APIs in user apps. |
2246615
to
6009686
Compare
fece42c
to
fc48ccf
Compare
… be written in one go with the rest of the data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work! I'm approving this PR so it is ready to merge when it's time.
|
||
spark::JSONWriter& spark::JSONWriter::value(unsigned long long val) { | ||
writeSeparator(); | ||
printf("%llu", val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that our libc support this format type, %llu
#ifndef Wiring_Ledger | ||
#define Wiring_Ledger 0 | ||
#endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Variant and Map defines here as well in case we want to reuse them for external libraries.
#define Wiring_Variant 1
#define Wiring_Map 1
Do not merge, superseded by #2715.
This is the first part of the Ledger functionality covering its storage logic and system/application APIs. Below are some links to simplify navigation in the new code:
Ledger
Auxillary classes
Outstanding issues
HAL_PLATFORM_ERROR_MESSAGES
) on Tracker, which freed about 2K of flash space, to accommodate for other changes in this PR.rmrf()
function added in this PR sometimes fails in load tests. The issue only affects theledger_purge*
functions and may be specific to LittleFS.Testing
This PR adds some basic unit tests for the auxillary classes but the unit tests for the Ledger itself will be added in another PR with the synchronization logic. For now, the
wiring/ledger
test can be used to validate the basic logic of the Ledger.References