summary refs log tree commit diff
path: root/lib/python
diff options
context:
space:
mode:
authorAlexandre d'Alton <alex@alexdalton.org>2021-09-29 22:56:13 +0200
committerGitHub <noreply@github.com>2021-09-30 06:56:13 +1000
commit90797d903c81944c80b4957e118adfb20145b9ba (patch)
tree66a375a6d9b927183d2efd160690d3f4ee33830b /lib/python
parentb02a5396251c0fadb92f2632e242b555c238ad8b (diff)
massdrop alt/ctrl: support saving into nvm (#6068)
* support saving into SmartEEPROM

Signed-off-by: Alexandre d Alton <alex@alexdalton.org>

* atsam: update smarteeprom implementation

- Use define for SmartEEPROM buffer address
- Check buffer overflow
- Do not perform operation when timeout occurs

Signed-off-by: Alexandre d'Alton <alex@alexdalton.org>

* return 0 instead of ff for invalid address or timeout

Signed-off-by: Alexandre d'Alton <alex@alexdalton.org>

* clang-format

* Add extra bounds checks

Co-authored-by: zvecr <git@zvecr.com>
Diffstat (limited to 'lib/python')
0 files changed, 0 insertions, 0 deletions