mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-15 16:49:15 -05:00
Purge UDA; never implemented, now deprecated
Fixes #58 Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
a69b35ffff
commit
9b9a125c66
3 changed files with 0 additions and 26 deletions
|
|
@ -13,7 +13,6 @@
|
|||
volatile uint32_t *tk1name0 = (volatile uint32_t *)TK1_MMIO_TK1_NAME0;
|
||||
volatile uint32_t *tk1name1 = (volatile uint32_t *)TK1_MMIO_TK1_NAME1;
|
||||
volatile uint32_t *uds = (volatile uint32_t *)TK1_MMIO_UDS_FIRST;
|
||||
volatile uint32_t *uda = (volatile uint32_t *)TK1_MMIO_QEMU_UDA; // Only in QEMU right now
|
||||
volatile uint32_t *cdi = (volatile uint32_t *)TK1_MMIO_TK1_CDI_FIRST;
|
||||
volatile uint32_t *udi = (volatile uint32_t *)TK1_MMIO_TK1_UDI_FIRST;
|
||||
volatile uint32_t *switch_app = (volatile uint32_t *)TK1_MMIO_TK1_SWITCH_APP;
|
||||
|
|
@ -30,9 +29,6 @@ volatile uint32_t *fw_blake2s_addr = (volatile uint32_t *)TK1_MMIO_TK1_BLAKE2S;
|
|||
volatile int (*fw_blake2s)(void *, unsigned long, const void *, unsigned long, const void *, unsigned long, blake2s_ctx *);
|
||||
// clang-format on
|
||||
|
||||
// TODO Real UDA is 4 words (16 bytes)
|
||||
#define UDA_WORDS 1
|
||||
|
||||
void puts(char *reason)
|
||||
{
|
||||
for (char *c = reason; *c != '\0'; c++) {
|
||||
|
|
@ -133,17 +129,6 @@ int main()
|
|||
anyfailed = 1;
|
||||
}
|
||||
|
||||
// TODO test UDA once we have it in real hw
|
||||
// uint32_t uda_local[UDA_WORDS];
|
||||
// uint32_t uda_zeros[UDA_WORDS];
|
||||
// memset(uda_zeros, 0, UDA_WORDS*4);
|
||||
// // Should get non-empty UDA
|
||||
// wordcpy(uda_local, (void *)uda, UDA_WORDS);
|
||||
// if (memeq(uda_local, uda_zeros, UDA_WORDS*4)) {
|
||||
// test_puts("FAIL: UDA empty\r\n");
|
||||
// anyfailed = 1;
|
||||
// }
|
||||
|
||||
uint32_t udi_local[2];
|
||||
uint32_t udi_zeros[2];
|
||||
memset(udi_zeros, 0, 2 * 4);
|
||||
|
|
@ -199,14 +184,6 @@ int main()
|
|||
anyfailed = 1;
|
||||
}
|
||||
|
||||
// TODO test UDA once we have in in real hw
|
||||
// // Now we should NOT be able to read from UDA.
|
||||
// wordcpy(uda_local, (void *)uda, UDA_WORDS);
|
||||
// if (!memeq(uda_local, uda_zeros, UDA_WORDS*4)) {
|
||||
// test_puts("FAIL: Read from UDA in app-mode\r\n");
|
||||
// anyfailed = 1;
|
||||
// }
|
||||
|
||||
uint32_t cdi_local[8];
|
||||
uint32_t cdi_local2[8];
|
||||
uint32_t cdi_zeros[8];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue