mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-04 02:46:49 -04:00

- Use one common Makefile for all test device apps. - Use a single copy of syscall.[Sh]. - Update docs for building.
18 lines
347 B
C
18 lines
347 B
C
// Copyright (C) 2025 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include <fw/tk1/reset.h>
|
|
#include <fw/tk1/syscall_num.h>
|
|
#include <syscall.h>
|
|
#include <tkey/debug.h>
|
|
#include <tkey/led.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);
|
|
}
|