mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-02 11:46:06 -04:00
fw: Set LED colors
- Set LED color to white when firmware has initialized - Set LED color to black when changing state to loading - Set LED color to blue when starting testloadapp - Update mgmt app allowed digest since testloadapp changed
This commit is contained in:
parent
edbcdb111f
commit
15a350da1e
3 changed files with 10 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <monocypher/monocypher-ed25519.h>
|
||||
#include <stdint.h>
|
||||
#include <tkey/debug.h>
|
||||
#include <tkey/led.h>
|
||||
#include <tkey/lib.h>
|
||||
#include <tkey/tk1_mem.h>
|
||||
|
||||
|
@ -161,6 +162,8 @@ int main(void)
|
|||
uint8_t available;
|
||||
uint8_t in = 0;
|
||||
|
||||
led_set(LED_BLUE);
|
||||
|
||||
// Generate a key pair from CDI
|
||||
crypto_ed25519_key_pair(secret_key, pubkey, (uint8_t *)cdi);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue