|
|
@@ -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(); |
|
|
|