mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-25 18:06:35 -05:00
This was announced on the Tillitis Blog the 2nd of October 2024, for more info visit https://tillitis.se
18 lines
347 B
C
18 lines
347 B
C
// Copyright (C) 2025 - Tillitis AB
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#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);
|
|
}
|