mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-09-06 01:21:55 +00:00
![Michael Cardell Widerkrantz](/assets/img/avatar_default.png)
We introduce an explicit state machine (see README). With the new states we: - combine setting size and USS to a single command. - start the device app immediatiely when having receceived the last data chunk and returning the digest. - Loop forever and wait for the stick to be removed if we end up in unknown state. Signed-off-by: Michael Cardell Widerkrantz <mc@tillitis.se>
23 lines
398 B
C
23 lines
398 B
C
/*
|
|
* Copyright (C) 2022 - Tillitis AB
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#ifndef TYPES_H
|
|
#define TYPES_H
|
|
|
|
typedef unsigned int uintptr_t;
|
|
typedef unsigned long long uint64_t;
|
|
typedef unsigned int uint32_t;
|
|
typedef int int32_t;
|
|
typedef long long int64_t;
|
|
typedef unsigned char uint8_t;
|
|
typedef unsigned long size_t;
|
|
|
|
#define NULL ((char *)0)
|
|
|
|
#define FALSE 0
|
|
#define TRUE !FALSE
|
|
|
|
#endif
|