Browse Source

move _rng_save earlier, drop some register debugging...

irr_shared
John-Mark Gurney 3 years ago
parent
commit
20f123cfc9
1 changed files with 2 additions and 21 deletions
  1. +2
    -21
      main.c

+ 2
- 21
main.c View File

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


Loading…
Cancel
Save