summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018/keystore.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-02-06 22:37:55 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-02-06 22:37:55 +0000
commit10348126fea2c423025b0724916522e3309cf45f (patch)
treed4634f9bfd799e6312c8a2e898bccba971a777aa /usb-i2c-sl018/keystore.c
parentadded statemachine (diff)
moved ill-named usb-serial to lib/anyio
git-svn-id: https://svn.spreadspace.org/avr/trunk@141 aa12f405-d877-488e-9caf-2d797e2a1cc7
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--;