This commit is contained in:
NIIBE Yutaka
2010-10-22 09:24:12 +09:00
parent 0fb4c91db3
commit 1d56c8d14f
7 changed files with 17 additions and 16 deletions

View File

@@ -4,10 +4,14 @@ Kaz Kojima:
boards/STM32_PRIMER2/board.h boards/STM32_PRIMER2/board.h
boards/STM32_PRIMER2/board.mk boards/STM32_PRIMER2/board.mk
boards/STM32_PRIMER2/mcuconf.h boards/STM32_PRIMER2/mcuconf.h
boards/STM32_PRIMER2/hw_config.c
NIIBE Yutaka: NIIBE Yutaka:
Founder of the project. Founder of the project.
Added CQ STARM support:
boards/CQ_STARM/board.c
boards/CQ_STARM/board.h
boards/CQ_STARM/board.mk
boards/CQ_STARM/mcuconf.h
Wrote: Wrote:
gnuk.svg gnuk.svg
src/configure src/configure

View File

@@ -1,3 +1,10 @@
2010-10-21 NIIBE Yutaka <gniibe@fsij.org>
* boards/common/hw_config.c (Get_SerialNum): Removed.
* src/usb_prop.c (gnuk_device_init): Remove calling Get_SerialNum.
* src/usb_desc.c (gnukStringSerial): Updated.
* boards/CQ_STARM/board.c (set_led): Fix polarity.
2010-10-20 NIIBE Yutaka <gniibe@fsij.org> 2010-10-20 NIIBE Yutaka <gniibe@fsij.org>
* FSIJ_SERIAL_NUMBER: New. * FSIJ_SERIAL_NUMBER: New.

View File

@@ -31,7 +31,7 @@ void
set_led (int value) set_led (int value)
{ {
if (value) if (value)
palClearPad (IOPORT3, GPIOC_LED);
else
palSetPad (IOPORT3, GPIOC_LED); palSetPad (IOPORT3, GPIOC_LED);
else
palClearPad (IOPORT3, GPIOC_LED);
} }

View File

@@ -31,8 +31,3 @@ Leave_LowPowerMode (void)
else else
bDeviceState = ATTACHED; bDeviceState = ATTACHED;
} }
void
Get_SerialNum (void)
{
}

View File

@@ -1,4 +1,4 @@
* configure support * [DONE] configure support
configure script would be good to select a board and to generate configure script would be good to select a board and to generate
random serial number. random serial number.
@@ -29,7 +29,7 @@ It would be good not to use malloc.
Get it from FSFE. Get it from FSFE.
* Serial number * [Partially DONE] Serial number
Currently, aid[] in openpgp-do.c has serial number 00000001. Currently, aid[] in openpgp-do.c has serial number 00000001.
It would be good to generate (random) number at compile time. It would be good to generate (random) number at compile time.

View File

@@ -207,7 +207,7 @@ static const uint8_t gnukStringSerial[] = {
8*2+2, /* bLength */ 8*2+2, /* bLength */
USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */ USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
'2', 0, '0', 0, '1', 0, '0', 0, '2', 0, '0', 0, '1', 0, '0', 0,
'0', 0, '9', 0, '1', 0, '0', 0 '1', 0, '0', 0, '2', 0, '2', 0
}; };
const ONE_DESCRIPTOR Device_Descriptor = { const ONE_DESCRIPTOR Device_Descriptor = {

View File

@@ -39,11 +39,6 @@
static void static void
gnuk_device_init (void) gnuk_device_init (void)
{ {
/*
* Update the serial number string descriptor (if needed)
*/
Get_SerialNum ();
pInformation->Current_Configuration = 0; pInformation->Current_Configuration = 0;
/* Connect the device */ /* Connect the device */