mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-28 01:15:28 -04:00
fw/defaultapp: Introduce simple default app
To retain the default behaviour from Bellatrix, we introduce a simple default app. If used on flash app slot 0 we get the same behaviour as in Bellatrix, that is, waiting for an app from the client.
This commit is contained in:
parent
d83d659284
commit
8cf2cd08b7
3 changed files with 95 additions and 0 deletions
19
hw/application_fpga/fw/defaultapp/main.c
Normal file
19
hw/application_fpga/fw/defaultapp/main.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Copyright (C) 2025 - Tillitis AB
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include <tkey/debug.h>
|
||||
#include <tkey/led.h>
|
||||
|
||||
#include "../testapp/syscall.h"
|
||||
#include "../tk1/reset.h"
|
||||
#include "../tk1/syscall_num.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
struct reset rst = {0};
|
||||
|
||||
led_set(LED_BLUE);
|
||||
|
||||
rst.type = START_CLIENT;
|
||||
syscall(TK1_SYSCALL_RESET, (uint32_t)&rst, 0, 0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue