Version 0.06
[gnuk/neug.git] / ChangeLog
index 25f7d2c..8eebd48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,207 @@
+2013-03-15  Niibe Yutaka  <gniibe@fsij.org>
+
+       * Version 0.06.
+
+       * src/main.c (vcom_string3): Updated.
+
+       Support relocatable reGNUal.
+
+       * src/neug.ld.in (_regnual_start): Now, it's just '.'.
+       * src/main.c (calculate_regnual_entry_address): New.
+       (main): Use calculate_regnual_entry_address for entry point.
+
+       New USB stack.
+
+       * src/main.c (device_desc, config_desc, string_descs): Remove.
+       (neug_device_reset, neug_ctrl_write_finish, neug_setup)
+       (neug_get_descriptor, neug_usb_event, usb_cb_interface): Rename to
+       usb_cb_*.
+       (Device_Method): Remove.
+       (main): Use vcom_configuration_desc.
+
+       * src/usb_lld.h, src/usb_stm32f103.c: Updated from Gnuk.
+
+2013-02-18  Niibe Yutaka  <gniibe@fsij.org>
+
+       * boards/STM32_PRIMER2/board.c, boards/STM32_PRIMER2/board.h:
+       Update for ChibiOS/RT 2.4.x.
+
+       * boards/FST_01/board.h: Use AN0 and AN9.
+
+       * src/random.c (noise_source_cnt_max_reset, noise_source_error):
+       Remove LED I/O.
+
+       * src/adc_stm32f103.c (ADC_SMPR2_SMP_AN9, ADC_CHANNEL_IN9): New.
+
+       * src/neug.h (neug_prng_reseed): Remove.
+
+       * chibios: Update.
+
+2013-02-07  Niibe Yutaka  <gniibe@fsij.org>
+
+       * Version 0.05.
+
+       * src/main.c (vcom_string3): Updated.
+
+2013-01-25  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/sha256.c (memcpy_bswap32): New function.
+       (bswap32_buf): Removed.
+       (sha256_finish): Use memcpy_bswap32.
+
+2013-01-24  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/sha256.c (v_cycle0): New.  Special case of v_cycle(i,j)
+       where j == 0.  Do byte order swapping here.
+       (v_cycle): Assume j != 0.
+       (sha256_process): Use v_cycle0 and v_cycle.
+       (sha256_update): Don't do byte order swapping.
+       (sha256_finish): Follow the change of sha256_process does byte
+       order swapping.
+
+2012-12-17  Niibe Yutaka  <gniibe@fsij.org>
+
+       * boards/FST_01_00: Added.
+
+2012-10-30  Niibe Yutaka  <gniibe@fsij.org>
+
+       * Version 0.04.
+
+       * src/main.c (vcom_string3): Updated.
+
+2012-10-26  Niibe Yutaka  <gniibe@fsij.org>
+
+       * NEUG_USB_DEVICE_ID (Product_STRING): Rename to NeuG True RNG.
+
+2012-10-23  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/random.c (neug_consume_random): New.
+
+       * src/main.c (copy_to_tx): New.
+       (main): Call neug_consume_random.
+
+2012-10-17  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/main.c (main): Wait for random number generation (instead of
+       sleeping).
+
+2012-10-16  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/random.c (neug_get_nonblock): New function.
+
+       * src/main.c (RANDOM_BYTES_LENGTH): Now, it's 64 to fill Tx
+       buffer.
+       (main): Fill 64-byte Tx buffer if possible.
+
+2012-10-15  Niibe Yutaka  <gniibe@fsij.org>
+
+       * tool/neug_check.py (main): Display USB strings.
+
+2012-10-13  Niibe Yutaka  <gniibe@fsij.org>
+
+       * boards/STBEE_MINI/board.c [!DFU_SUPPORT] (boardInit): Don't run
+       when "user switch" is pushed.  This is for JTAG/SWD debugger.
+
+2012-10-12  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/main.c (neug_setup): Support neug_*_max.
+
+       * src/random.c (ep_process): Enable health tests for
+       NEUG_MODE_RAW.
+       (rng): Don't use the result on error for NEUG_MODE_RAW.
+       (neug_rc_max, neug_p64_max, neug_p4k_max): New.
+       (repetition_count_test, adaptive_proportion_64_test)
+       (adaptive_proportion_4096_test): Record maximum counts.
+       (noise_source_cnt_max_reset): New.
+       (neug_mode_select): Call noise_source_cnt_max_reset on mode
+       change.
+
+       * tool/neug_check.py (get_info): Rename.
+       (main): Support max counts.
+
+2012-10-11  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/random.c (EP_ROUND_RAW_DATA_INPUTS): Set it to 32.
+
+       * tool/dfuse.py: Update from Gnuk 1.0.1.
+
+       * src/chconf.h (CORTEX_VTOR_INIT): Define.
+
+       * src/neug.ld.in (.sys): Follow the change of file layout.
+
+       * src/halconf.h (HAL_USE_EXT, HAL_USE_RTC): Define.
+       (ADC_USE_WAIT, ADC_USE_MUTUAL_EXCLUSION, SERIAL_BUFFERS_SIZE):
+       Remove.
+
+       * boards/FST_01/mcuconf.h (STM32_RTCSEL): Define.
+       (STM32_USBPRE, STM32_MCO): Remove.
+       * boards/STBEE/mcuconf.h: Likewise.
+       * boards/STM8S_DISCOVERY/mcuconf.h: Likewise.
+       * boards/OLIMEX_STM32_H103/mcuconf.h: Likewise.
+       * boards/STBEE_MINI/mcuconf.h: Likewise.
+       * boards/CQ_STARM/mcuconf.h: Likewise.
+       * boards/STM32_PRIMER2/mcuconf.h: Likewise.
+
+       * boards/common/mcuconf-common.h (STM32_NO_INIT)
+       (STM32_HSI_ENABLED, STM32_LSI_ENABLED, STM32_HSE_ENABLED)
+       (STM32_LSE_ENABLED, STM32_USB_CLOCK_REQUIRED, STM32_USBPRE)
+       (STM32_MCOSEL, STM32_PVD_ENABLE, STM32_PLS): Define.
+
+       * chibios: Updated to 2.4.3.
+
+       * src/usb_stm32f103.c: Rename (was: usb-lld.c).
+       * src/Makefile.in (CSRC): Follow the rename.
+
+2012-10-10  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/random.c (rng_gen): Remove.
+       (rng): Merge rng_gen, avoiding bigger lock.
+       (neug_mode_select): Better synchronization to rng thread.
+
+2012-10-09  Niibe Yutaka  <gniibe@fsij.org>
+
+       * Version 0.03.
+
+       * src/main.c (vcom_string3): Updated.
+
+2012-10-05  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/main.c (neug_state): Remove.
+       (neug_ctrl_write_finish, vcom_port_data_setup, EP1_IN_Callback)
+       (main): Use ->p_state (was: neug_state).
+       (main): Call chThdSleep (was: chEvtWaitOneTimeout).
+
+2012-10-03  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/main.c (USB_NEUG_GET_INFO): New.
+
+       * tool/neug_check.py: Show mode and errors.
+
+       * src/adc_stm32f103.c (adc_lld_serve_rx_interrupt)
+       (adc_start_conversion): Filter by CRC32.
+       * src/random.c (ep_init, ep_fill_wbuf, ep_process): Filter by CRC32.
+       (neug_init): CRC32 initialization.
+
+2012-10-02  Niibe Yutaka  <gniibe@fsij.org>
+
+       * src/random.c: Use our own ADC driver.
+
+       * src/halconf.h (HAL_USE_ADC): Set FALSE.
+       (STM32_DMA_REQUIRED): Define here.
+
+       * src/chconf.h (CH_USE_SEMAPHORES): Set FALSE.
+
+       * src/Makefile.in (CSRC): Add adc_stm32f103.c.
+
+       * src/adc.h, src/adc_stm32f103.c: New.
+
+       * src/random.c (NEUG_ADC_SETTING1_SMPR1): Tweak.
+
 2012-10-01  Niibe Yutaka  <gniibe@fsij.org>
 
-       * src/random.c (adcgrpcfg): ADC1 and ADC2 two channels, each.
-       (adc2_start): Add SCAN for ADC2.
+       * src/random.c (adc2_start): Add SCAN for ADC2.
+       (adcgrpcfg, NEUG_ADC_SETTING1_SMPR1, NEUG_ADC_SETTING2_SMPR1):
+       ADC1 three channels and ADC2 two channels, one same channel.
 
        * boards/FST_01/board.h: Use default ADC settings.
        * boards/OLIMEX_STM32_H103/board.h (NEUG_ADC_SETTING2_SMPR1)
        * boards/CQ_STARM: Added.
 
        * Version 0.00.
-