summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018/keystore.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb-i2c-sl018/keystore.c')
-rw-r--r--usb-i2c-sl018/keystore.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usb-i2c-sl018/keystore.c b/usb-i2c-sl018/keystore.c
index c04f90d..5718e3f 100644
--- a/usb-i2c-sl018/keystore.c
+++ b/usb-i2c-sl018/keystore.c
@@ -25,8 +25,9 @@
#include <avr/eeprom.h>
#include <stdio.h>
#include <string.h>
-#include "usb_serial.h"
+
#include "led.h"
+#include "anyio.h"
#define EEPROM_SIZE 1024
typedef uint8_t keyslot_t[8];
@@ -40,9 +41,9 @@ void flash_keystore_from_stdio(void)
printf("Flashing keys:\n\r");
fflush(stdout);
for(uint8_t ks_pos=0;ks_pos<EEPROM_SIZE/sizeof(ks);) {
- usb_serial_task();
+ anyio_task();
- int16_t bytes_received = usb_serial_bytes_received();
+ int16_t bytes_received = anyio_bytes_received();
while(bytes_received > 0) {
ks[byte_pos++]=fgetc(stdin);
bytes_received--;