tillitis-key/hw/application_fpga/fw/tk1
Michael Cardell Widerkrantz ccc3b16569
fw: Safer memory functions + asserts
Introduce memcpy_s() and wordcpy_s() that takes the destination buffer
size as an argument. Use assert() which aborts our program to an
eternal loop if we hit problems.

Sprinkle asserts elsewhere as well.

Signed-off-by: Daniel Lublin <daniel@lublin.se>
2023-03-14 10:25:01 +01:00
..
blake2s Rename to TK1 2022-10-26 09:20:02 +02:00
assert.c fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
assert.h fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
firmware.lds Rename to TK1 2022-10-26 09:20:02 +02:00
lib.c fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
lib.h fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
main.c fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
Makefile fw: Safer memory functions + asserts 2023-03-14 10:25:01 +01:00
proto.c fw: Add destination buffer size to read() 2023-03-14 10:25:00 +01:00
proto.h fw: Add destination buffer size to read() 2023-03-14 10:25:00 +01:00
start.S Change to max 100 KB app with 28 KB stack 2022-11-02 15:52:29 +01:00
types.h fw: Introduce an explicit state machine - changes protocol! 2022-11-28 16:17:19 +01:00