From 20f123cfc98e45f3a38e5728b3f53b45d5211a77 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 30 Apr 2021 22:39:26 -0700 Subject: [PATCH] move _rng_save earlier, drop some register debugging... --- main.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/main.c b/main.c index 8d441be..57be73f 100644 --- a/main.c +++ b/main.c @@ -191,22 +191,14 @@ main(void) BoardInitMcu(); + strobe_rng_save(); + /* turn on LED */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_8, GPIO_PIN_SET); #if 1 wait_for_vcp(); - usb_printf("rng_save:\r\n"); - hexdump((const uint8_t *)rng_save, sizeof rng_save); - usb_printf("\r\n"); - - strobe_rng_save(); - - usb_printf("rng_save:\r\n"); - hexdump((const uint8_t *)rng_save, sizeof rng_save); - usb_printf("\r\n"); - usb_printf("starting...\r\n"); bare_strobe_randomize(bytes, sizeof bytes); @@ -216,17 +208,6 @@ main(void) Radio.Init(&revents); - usb_printf("foo\r\n"); - Radio.ReadBuffer(0x00, bytes, sizeof bytes); - usb_printf("regs 0x00: "); - hexdump(bytes, sizeof bytes); - usb_printf("\r\n"); - - Radio.ReadBuffer(0x40, bytes, sizeof bytes); - usb_printf("regs 0x40: "); - hexdump(bytes, sizeof bytes); - usb_printf("\r\n"); - uint32_t v; v = Radio.Random();