mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-20 23:26:29 -04:00
doc: Add ERASE_DATA syscall
This commit is contained in:
parent
c13f102d1e
commit
0b0bfa4b78
@ -79,9 +79,9 @@ For full change log [see](https://github.com/tillitis/tillitis-key1/compare/TK1-
|
||||
- Support a filesystem on flash.
|
||||
|
||||
- Add a system call mechanism and system calls: `RESET`, `ALLOC_AREA`,
|
||||
`DEALLOC_AREA`, `WRITE_DATA`, `READ_DATA`, `PRELOAD_DELETE`,
|
||||
`PRELOAD_STORE`, `PRELOAD_STORE_FIN`, `PRELOAD_GET_DIGSIG`,
|
||||
`STATUS`, and `GET_VIDPID`. See [firmware's
|
||||
`DEALLOC_AREA`, `WRITE_DATA`, `READ_DATA`, `ERASE_DATA`,
|
||||
`PRELOAD_DELETE`, `PRELOAD_STORE`, `PRELOAD_STORE_FIN`,
|
||||
`PRELOAD_GET_DIGSIG`, `STATUS`, and `GET_VIDPID`. See [firmware's
|
||||
README](../hw/application_fpga/fw/README.md) for documentation.
|
||||
|
||||
- Harmonize with [tkey-libs](https://github.com/tillitis/tkey-libs).
|
||||
|
@ -594,6 +594,20 @@ syscall(TK1_SYSCALL_READ_DATA, offset, (uint32_t)buf, sizeof(buf);
|
||||
|
||||
Read into `buf` at byte `offset` from the app's flash area.
|
||||
|
||||
#### `ERASE_DATA`
|
||||
|
||||
```
|
||||
uint32_t offset = 0;
|
||||
uint32_t size = 4096;
|
||||
|
||||
syscall(TK1_SYSCALL_ERASE_DATA, offset, size, 0);
|
||||
```
|
||||
|
||||
Erase `size` bytes from `offset` within the area. Returns 0 on
|
||||
success.
|
||||
|
||||
Both `size` and `offset` must be a multiple of 4096 bytes.
|
||||
|
||||
#### `PRELOAD_DELETE`
|
||||
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user