mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-21 14:19:04 -04:00
build: Use only one Makefile for apps
- Use one common Makefile for all test device apps. - Use a single copy of syscall.[Sh]. - Update docs for building.
This commit is contained in:
parent
6e3034c3ce
commit
ba17a2b29e
13 changed files with 165 additions and 403 deletions
|
@ -2,18 +2,18 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include <blake2s/blake2s.h>
|
||||
#include <fw/tk1/reset.h>
|
||||
#include <fw/tk1/syscall_num.h>
|
||||
#include <monocypher/monocypher-ed25519.h>
|
||||
#include <stdint.h>
|
||||
#include <tkey/assert.h>
|
||||
#include <tkey/debug.h>
|
||||
#include <tkey/led.h>
|
||||
#include <tkey/lib.h>
|
||||
#include <tkey/tk1_mem.h>
|
||||
|
||||
#include "../testapp/syscall.h"
|
||||
#include "../tk1/reset.h"
|
||||
#include "../tk1/syscall_num.h"
|
||||
#include "blink.h"
|
||||
#include "tkey/assert.h"
|
||||
#include "syscall.h"
|
||||
|
||||
// clang-format off
|
||||
static volatile uint32_t *cdi = (volatile uint32_t *) TK1_MMIO_TK1_CDI_FIRST;
|
||||
|
@ -157,7 +157,8 @@ void reset_from_client(void)
|
|||
// Give the next in chain something to look at.
|
||||
memset(rst.next_app_data, 17, sizeof(rst.next_app_data));
|
||||
|
||||
syscall(TK1_SYSCALL_RESET, (uint32_t)&rst, sizeof(rst.next_app_data), 0);
|
||||
syscall(TK1_SYSCALL_RESET, (uint32_t)&rst, sizeof(rst.next_app_data),
|
||||
0);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue