more cleanup

This commit is contained in:
NIIBE Yutaka
2012-05-14 14:26:44 +09:00
parent 9275a6fdcb
commit ee61781b92
3 changed files with 5 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
2012-05-14 Niibe Yutaka <gniibe@fsij.org>
* src/hardclock.c: Remove.
* src/usb_prop.c (MSC_INTERFACE_NO): New.
(gnuk_setup_endpoints_for_interface): Cleanup with MSC_INTERFACE_NO.
(gnuk_setup_with_data, gnuk_setup_with_nodata): Likewise.
@@ -8,7 +10,8 @@
* src/usb-msc.h: Rename from usb_msc.h.
* src/Makefile.in: Follow the rename of usb-msc.c.
* src/Makefile.in: Follow the rename of usb-msc.c and remove of
hardclock.c.
2012-05-12 Niibe Yutaka <gniibe@fsij.org>

View File

@@ -91,7 +91,7 @@ CSRC = $(PORTSRC) \
$(CRYPTSRC) \
main.c usb_lld.c \
usb_desc.c usb_prop.c \
usb-icc.c openpgp.c ac.c openpgp-do.c flash.c hardclock.c \
usb-icc.c openpgp.c ac.c openpgp-do.c flash.c \
random.c neug.c
ifneq ($(ENABLE_DEBUG),)

View File

@@ -1,14 +0,0 @@
#include "config.h"
#include "ch.h"
#include "hal.h"
#include "gnuk.h"
uint32_t
hardclock (void)
{
uint32_t r = SysTick->VAL;
DEBUG_INFO ("Random: ");
DEBUG_WORD (r);
return r;
}