+2015-07-30 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/sys.h (BOARD_ID_ST_NUCLEO_F103, BOARD_ID_ST_DONGLE): New.
+ * src/adc_stm32f103.c (get_adc_config): Add ST Dongle and ST
+ Nucleo support.
+
+2015-07-28 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/usb_stm32f103.c: Update from Gnuk.
+ * src/usb_lld.h: Ditto.
+ * src/main.c (usb_cb_ctrl_write_finish, vcom_port_data_setup)
+ (usb_cb_setup, usb_cb_get_descriptor, usb_cb_interface): Follow
+ the API change of USB driver.
+ (FSIJ_DEVICE_NEUG_FRAUCHEKY_REQUESTED): New.
+ (NEUG_SPECIAL_BITRATE): New.
+ (usb_cb_ctrl_write_finish, main): Special bitrate to invoke
+ Fraucheky manually.
+
+2015-07-23 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/configure (nl): New. '\n' in sed replacement text is not
+ portable and break FreeBSD or MacOS X built.
+ Reported by Kenji Rikitake.
+
+2015-07-18 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: 1.0.2.
+
+2015-07-16 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/config.h.in (@TARGET_DEFINE@): Remove.
+ * src/configure [--with-dfu] (HEXOUTPUT_MAKE_OPTION): Enable .hex
+ output.
+
+2015-07-15 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/usb_lld.h: Update from Gnuk.
+ * src/usb_stm32f103.c: Likewise.
+ * src/main.c (usb_cb_get_descriptor): Follow the change.
+
+ * chopstx: Update to 0.07.
+ * src/sys.c: Update to 2.1 from chopstx.
+ * src/sys.h: Likewise.
+ * tool/openocd-script: Fix for newer OpenOCD.
+
+2015-07-14 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/configure (sys1_compat): Fix assignment syntax.
+
+ * src/adc_stm32f103.c (get_adc_config): New. Consolidate knowlege
+ of boards for ADC usage.
+
+ * src/neug.c: Remove inclusion of "board.h".
+
+ * tool/neug_check.py (field): New field 'Board'.
+ * src/main.c (main): Determine flash page size at runtime.
+ (usbbuf): New. Use for passwd and string transfer.
+ (usb_cb_get_descriptor): Support sys_board_name.
+ * src/neug.ld.in: Update for sys 2.1.
+
+2015-07-11 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/neug.ld.in (.fill_ffff): Add ALIGN 4.
+
+2015-07-08 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update to 0.06.
+
+ * src/configure (help): Add other boards.
+
+2015-06-30 Niibe Yutaka <gniibe@fsij.org>
+
+ * tool/neug_check.py: Fix raise and print statements.
+
+ * tool/neug_upgrade.py: Support upgrade with passwd.
+ (neug.set_passwd): New.
+
+ * src/main.c (USB_NEUG_SET_PASSWD): New.
+ (set_passwd): New.
+ (usb_cb_ctrl_write_finish, usb_cb_setup): Handle
+ USB_NEUG_SET_PASSWD and USB_NEUG_EXIT with passwd.
+
+ * src/neug.ld.in (flash): A page for passwd.
+
+ * src/config.h.in (@SERIALNO_STR_LEN_DEFINE@): Rename.
+ * src/configure (SERIALNO_STR_LEN_DEFINE): Rename.
+
+ * src/configure (help): Add CQ_STARM.
+
+2015-06-22 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/configure (help): Add STM32_PRIMER2.
+
+ * src/sys.c: Update from chopstx/example-cdc/sys.c.
+
+2015-03-17 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: 1.0.1c.
+
+2015-03-17 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: 1.0.1b.
+
+ * src/configure: Call configure of Fraucheky with REVISION,
+ REVISION_CHOPSTX, REVISION_FRAUCHEKY.
+
+2015-03-12 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: 1.0.1a.
+
+ * src/main.c (fill_serial_no_by_unique_id): Use bits in higher
+ address.
+
+2015-01-29 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: 1.0.1.
+
+2015-01-28 Niibe Yutaka <gniibe@fsij.org>
+
+ * boards/STBEE, board/STBEE_MINI: Remove.
+
+2015-01-22 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/Makefile.in (build/neug.o, build/sha256.o): Use -O3.
+
+2015-01-21 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/neug.ld.in (.text): Add ALIGN(8) at the end.
+
+ * fraucheky: Update to 0.1.
+
+2014-12-10 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update to 0.04.
+
+ * src/sys.c: Update from chopstx.
+
+2014-05-22 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update.
+ * fraucheky: Update.
+
+2013-11-21 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/usb_stm32f103.c (usb_handle_transfer): Incorporate changes
+ from Gnuk.
+
+2013-11-18 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/usb_stm32f103.c (usb_interrupt_handler): Change the order of
+ calling handler.
+
+2013-11-11 Niibe Yutaka <gniibe@fsij.org>
+
+ * Version 1.0.
+
+2013-11-09 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/adc_stm32f103.c (adc_wait_completion): Remove comment about
+ spurious interrupt, as we knew that it's because of the bug of
+ Chopstx 0.00.
+
+2013-11-08 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update to 0.03.
+
+ * src/usb_stm32f103.c (ISTR_OVR): Rename.
+ (usb_handle_transfer): Rewrite control transfer handling, so that
+ the case where both of CTR_TX, CTR_RX are 1 is handled correctly.
+
+ * src/main.c (neug_setup_endpoints_for_interface): Fix for ENDP2.
+
+2013-11-06 Niibe Yutaka <gniibe@fsij.org>
+
+ * fraucheky: New submodule.
+ * .gitignore: Add generated files by Fraucheky.
+ * NEUG_USB_DEVICE_ID: Add USB id of Fraucheky.
+ * src/Makefile.in, src/config.h.in, src/configure: Support
+ Fraucheky.
+ *src/main.c: Likewise.
+
+ * vender/flying-stone-technology: New.
+
+2013-11-05 Niibe Yutaka <gniibe@fsij.org>
+
+ * VERSION: New file.
+
+ * src/configure (SERIALNO, SERIALNO_STR_LEN_DEFINE): New.
+ (REVISION): Use the file VERSION if it doesn't have .git.
+ * src/config.h.in (SERIALNO_STR_LEN_DEFINE): New.
+ * src/main.c (vcom_string3): Removed.
+ (ID_OFFSET): New, using SERIALNO_STR_LEN.
+
+2013-11-03 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update to 0.01.
+
+2013-11-02 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update.
+ * src/sys.c, src/usb_lld.h, src/usb_stm32f103.c: Update from
+ Chopstx.
+ * src/main.c (usb_cb_get_descriptor): Follow the change.
+
+2013-10-24 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/main.c (usb_cb_setup): Signal CND_USB, so that
+ neug_upgrade.py works better.
+
+2013-08-22 Niibe Yutaka <gniibe@fsij.org>
+
+ * Version 0.11.
+
+2013-08-21 Niibe Yutaka <gniibe@fsij.org>
+
+ * chopstx: Update to 0.00 release of Chopstx.
+
+2013-08-20 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/configure (options): Add --enable-sys1-compat.
+
+2013-08-19 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/sha256.h: Remove extern from function prototypes.
+
+ * src/main.c (vcom_string3): Updated.
+ [DFU_SUPPORT] (main): Fix calling flash_erase_all_and_exec.
+
+ * src/neug.c (repetition_count_test_word)
+ (adaptive_proportion_64_test_word)
+ (adaptive_proportion_4096_test_word)
+ (noise_source_continuous_test_word): New.
+ (ep_fill_wbuf_v): Use noise_source_continuous_test_word.
+
+2013-08-17 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/main.c (main): Fix locking of USB_MTX.
+
+ * src/adc_stm32f103.c (adc_wait_completion): Fix race condition.
+ Clear (FLAGS & ~1) only, not all of possible interrupts.
+
+2013-08-16 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/main.c (bDeviceState, fsij_device_state, connected): Protect
+ by USB_MTX.
+ (usb_cb_ctrl_write_finish): Use USB_MTX to access protected vars.
+ Update CONNECTED here.
+ (vcom_port_data_setup): Check length.
+ Don't update CONNECTED here.
+ (usb_cb_setup): Use USB_MTX to access protected vars.
+ (usb_cb_handle_event): Likewise.
+ (main): Mutual exclusion by USB_MTX.
+
+ * src/usb_lld.h (bDeviceState): Remove.
+
+ * src/adc_stm32f103.c (NEUG_DMA_MODE): Merge NEUG_DMA_MODE_SAMPLE
+ and NEUG_DMA_MODE_CRC32 which are same value now.
+ (adc_start_conversion_internal): Remove.
+ (adc_start_conversion): Remove MODE, it's not SIZE but COUNT now.
+
+ * src/neug.c (ep_init, ep_process): Follow the change of
+ adc_start_conversion.
+
+ * chopstx: New version of Chopstx.
+
+2013-08-13 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/main.c (struct line_coding): Add packed attribute.
+ (usb_cb_ctrl_write_finish): Wake up main thread if it wait
+ on condition variable.
+ (main): Call neug_mode_select in the loop of waiting_connection.
+ Call neug_mode_select in the main loop to allow changing mode
+ while connected.
+
+ * tool/neug_check.py (neug.get_mode): Change the explanation of
+ filter "CRC32 filter".
+
+ * src/neug.c (adc_buf): Remove.
+ (ep_fill_initial_string): Call noise_source_continuous_test.
+ (ep_init): Follow the change of adc_start_conversion.
+ (ep_fill_wbuf_v): New name and new argument V, remove FLIP.
+ (ep_process): Access CRC unit from here. Correct calling
+ noise_source_continuous_test for the last byte of output.
+ (rng): Handle error of ADC.
+
+ * src/adc_stm32f103.c (adc_mode, adc_ptr, adc_size): Remove.
+ (adc_buf): Make it public.
+ (adc_start_conversion): Change arguments.
+ (adc_lld_serve_rx_interrupt, adc_wait): Remove.
+ (adc_wait_completion): New with error code.
+
+2013-08-12 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/sys.c (reset): Remove unneeded & for FT0, FT1, and FT2.
+
+2013-06-21 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/neug.ld.in: Change the placement of stacks.
+
+ * src/neug.c (rng): Handle interrupt by this thread.
+ (neug_mode_select): Mutual exclusion for mode change.
+
+ * src/adc_stm32f103.c (adc_wait): New.
+ (adc_start): Don't create thread.
+ (adc_intr_thread): Remove.
+
+ * src/neug.c: Rename from random.c.
+
+2013-06-19 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/main.c (usb_intr): Avoid interrupt masking by application.
+
+2013-06-18 Niibe Yutaka <gniibe@fsij.org>
+
+ * src/random.c: Update for Chopstx.
+
+ * src/sys.c: Portable version (not for ChibiOS). Version 2.0.
+ * src/sys.h (clock_init, gpio_init): New.
+
+ * src/stm32f103.h: New.
+
+ * src/neug.ld.in: Declare stack sizes.
+
+ * src/main.c: Update for Chopstx.
+ (usb_intr): Thread for interrupt handling.
+ (Vector90): Remove.
+ (EP1_IN_Callback): Use mutex and cond.
+ (event_flag_init, event_flag_waitone, event_flag_signal): New.
+ (led_blinker): Use event flag of our own.
+ (main): Use mutex and cond. Use cancel and join.
+
+ * src/configure: Update for Chopstx.
+ (target): Defaults to FST_01.
+
+ * src/adc_stm32f103.c (STM32_ADC_ADC1_IRQ_PRIORITY): Remove.
+ (NEUG_DMA_MODE_CRC32): Add MINC, memory address increment.
+ (adc_init): Handle RCC initialization for ADC.
+ (adc_intr_thread): New.
+ (adc_start): Create a thread for interrupt handling.
+ (adc_start_conversion): Add DMA handling.
+ (adc_stop): Cancel a thread for interrupt handling.
+ (adc_lld_serve_rx_interrupt): Use bigger buffer (256-byte long).
+
+ * src/aes-constant-ft.c: Add comments. Use stdint.h.
+
+ * src/config.h.in (FLASH_PAGE_SIZE): Remove.
+
+ * src/adc.h: Declare mutex and cond for Chopstx.
+
+ * chopstx: New, Chopstx RT Thread Library.
+ * chibios: Remove.
+ * src/Makefile.in: Update for Chopstx.
+
+ * src/usb_stm32f103.c (TRUE, FALSE): Defined here.
+
+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.
+