1 2013-11-08 Niibe Yutaka <gniibe@fsij.org>
3 * src/usb_stm32f103.c (ISTR_OVR): Rename.
4 (usb_handle_transfer): Rewrite control transfer handling, so that
5 the case where both of CTR_TX, CTR_RX are 1 is handled correctly.
7 * src/main.c (neug_setup_endpoints_for_interface): Fix for ENDP2.
9 2013-11-06 Niibe Yutaka <gniibe@fsij.org>
11 * fraucheky: New submodule.
12 * .gitignore: Add generated files by Fraucheky.
13 * NEUG_USB_DEVICE_ID: Add USB id of Fraucheky.
14 * src/Makefile.in, src/config.h.in, src/configure: Support
16 *src/main.c: Likewise.
18 * vender/flying-stone-technology: New.
20 2013-11-05 Niibe Yutaka <gniibe@fsij.org>
24 * src/configure (SERIALNO, SERIALNO_STR_LEN_DEFINE): New.
25 (REVISION): Use the file VERSION if it doesn't have .git.
26 * src/config.h.in (SERIALNO_STR_LEN_DEFINE): New.
27 * src/main.c (vcom_string3): Removed.
28 (ID_OFFSET): New, using SERIALNO_STR_LEN.
30 2013-11-03 Niibe Yutaka <gniibe@fsij.org>
32 * chopstx: Update to 0.01.
34 2013-11-02 Niibe Yutaka <gniibe@fsij.org>
37 * src/sys.c, src/usb_lld.h, src/usb_stm32f103.c: Update from
39 * src/main.c (usb_cb_get_descriptor): Follow the change.
41 2013-10-24 Niibe Yutaka <gniibe@fsij.org>
43 * src/main.c (usb_cb_setup): Signal CND_USB, so that
44 neug_upgrade.py works better.
46 2013-08-22 Niibe Yutaka <gniibe@fsij.org>
50 2013-08-21 Niibe Yutaka <gniibe@fsij.org>
52 * chopstx: Update to 0.00 release of Chopstx.
54 2013-08-20 Niibe Yutaka <gniibe@fsij.org>
56 * src/configure (options): Add --enable-sys1-compat.
58 2013-08-19 Niibe Yutaka <gniibe@fsij.org>
60 * src/sha256.h: Remove extern from function prototypes.
62 * src/main.c (vcom_string3): Updated.
63 [DFU_SUPPORT] (main): Fix calling flash_erase_all_and_exec.
65 * src/neug.c (repetition_count_test_word)
66 (adaptive_proportion_64_test_word)
67 (adaptive_proportion_4096_test_word)
68 (noise_source_continuous_test_word): New.
69 (ep_fill_wbuf_v): Use noise_source_continuous_test_word.
71 2013-08-17 Niibe Yutaka <gniibe@fsij.org>
73 * src/main.c (main): Fix locking of USB_MTX.
75 * src/adc_stm32f103.c (adc_wait_completion): Fix race condition.
76 Clear (FLAGS & ~1) only, not all of possible interrupts.
78 2013-08-16 Niibe Yutaka <gniibe@fsij.org>
80 * src/main.c (bDeviceState, fsij_device_state, connected): Protect
82 (usb_cb_ctrl_write_finish): Use USB_MTX to access protected vars.
83 Update CONNECTED here.
84 (vcom_port_data_setup): Check length.
85 Don't update CONNECTED here.
86 (usb_cb_setup): Use USB_MTX to access protected vars.
87 (usb_cb_handle_event): Likewise.
88 (main): Mutual exclusion by USB_MTX.
90 * src/usb_lld.h (bDeviceState): Remove.
92 * src/adc_stm32f103.c (NEUG_DMA_MODE): Merge NEUG_DMA_MODE_SAMPLE
93 and NEUG_DMA_MODE_CRC32 which are same value now.
94 (adc_start_conversion_internal): Remove.
95 (adc_start_conversion): Remove MODE, it's not SIZE but COUNT now.
97 * src/neug.c (ep_init, ep_process): Follow the change of
100 * chopstx: New version of Chopstx.
102 2013-08-13 Niibe Yutaka <gniibe@fsij.org>
104 * src/main.c (struct line_coding): Add packed attribute.
105 (usb_cb_ctrl_write_finish): Wake up main thread if it wait
106 on condition variable.
107 (main): Call neug_mode_select in the loop of waiting_connection.
108 Call neug_mode_select in the main loop to allow changing mode
111 * tool/neug_check.py (neug.get_mode): Change the explanation of
112 filter "CRC32 filter".
114 * src/neug.c (adc_buf): Remove.
115 (ep_fill_initial_string): Call noise_source_continuous_test.
116 (ep_init): Follow the change of adc_start_conversion.
117 (ep_fill_wbuf_v): New name and new argument V, remove FLIP.
118 (ep_process): Access CRC unit from here. Correct calling
119 noise_source_continuous_test for the last byte of output.
120 (rng): Handle error of ADC.
122 * src/adc_stm32f103.c (adc_mode, adc_ptr, adc_size): Remove.
123 (adc_buf): Make it public.
124 (adc_start_conversion): Change arguments.
125 (adc_lld_serve_rx_interrupt, adc_wait): Remove.
126 (adc_wait_completion): New with error code.
128 2013-08-12 Niibe Yutaka <gniibe@fsij.org>
130 * src/sys.c (reset): Remove unneeded & for FT0, FT1, and FT2.
132 2013-06-21 Niibe Yutaka <gniibe@fsij.org>
134 * src/neug.ld.in: Change the placement of stacks.
136 * src/neug.c (rng): Handle interrupt by this thread.
137 (neug_mode_select): Mutual exclusion for mode change.
139 * src/adc_stm32f103.c (adc_wait): New.
140 (adc_start): Don't create thread.
141 (adc_intr_thread): Remove.
143 * src/neug.c: Rename from random.c.
145 2013-06-19 Niibe Yutaka <gniibe@fsij.org>
147 * src/main.c (usb_intr): Avoid interrupt masking by application.
149 2013-06-18 Niibe Yutaka <gniibe@fsij.org>
151 * src/random.c: Update for Chopstx.
153 * src/sys.c: Portable version (not for ChibiOS). Version 2.0.
154 * src/sys.h (clock_init, gpio_init): New.
156 * src/stm32f103.h: New.
158 * src/neug.ld.in: Declare stack sizes.
160 * src/main.c: Update for Chopstx.
161 (usb_intr): Thread for interrupt handling.
163 (EP1_IN_Callback): Use mutex and cond.
164 (event_flag_init, event_flag_waitone, event_flag_signal): New.
165 (led_blinker): Use event flag of our own.
166 (main): Use mutex and cond. Use cancel and join.
168 * src/configure: Update for Chopstx.
169 (target): Defaults to FST_01.
171 * src/adc_stm32f103.c (STM32_ADC_ADC1_IRQ_PRIORITY): Remove.
172 (NEUG_DMA_MODE_CRC32): Add MINC, memory address increment.
173 (adc_init): Handle RCC initialization for ADC.
174 (adc_intr_thread): New.
175 (adc_start): Create a thread for interrupt handling.
176 (adc_start_conversion): Add DMA handling.
177 (adc_stop): Cancel a thread for interrupt handling.
178 (adc_lld_serve_rx_interrupt): Use bigger buffer (256-byte long).
180 * src/aes-constant-ft.c: Add comments. Use stdint.h.
182 * src/config.h.in (FLASH_PAGE_SIZE): Remove.
184 * src/adc.h: Declare mutex and cond for Chopstx.
186 * chopstx: New, Chopstx RT Thread Library.
188 * src/Makefile.in: Update for Chopstx.
190 * src/usb_stm32f103.c (TRUE, FALSE): Defined here.
192 2013-03-15 Niibe Yutaka <gniibe@fsij.org>
196 * src/main.c (vcom_string3): Updated.
198 Support relocatable reGNUal.
200 * src/neug.ld.in (_regnual_start): Now, it's just '.'.
201 * src/main.c (calculate_regnual_entry_address): New.
202 (main): Use calculate_regnual_entry_address for entry point.
206 * src/main.c (device_desc, config_desc, string_descs): Remove.
207 (neug_device_reset, neug_ctrl_write_finish, neug_setup)
208 (neug_get_descriptor, neug_usb_event, usb_cb_interface): Rename to
210 (Device_Method): Remove.
211 (main): Use vcom_configuration_desc.
213 * src/usb_lld.h, src/usb_stm32f103.c: Updated from Gnuk.
215 2013-02-18 Niibe Yutaka <gniibe@fsij.org>
217 * boards/STM32_PRIMER2/board.c, boards/STM32_PRIMER2/board.h:
218 Update for ChibiOS/RT 2.4.x.
220 * boards/FST_01/board.h: Use AN0 and AN9.
222 * src/random.c (noise_source_cnt_max_reset, noise_source_error):
225 * src/adc_stm32f103.c (ADC_SMPR2_SMP_AN9, ADC_CHANNEL_IN9): New.
227 * src/neug.h (neug_prng_reseed): Remove.
231 2013-02-07 Niibe Yutaka <gniibe@fsij.org>
235 * src/main.c (vcom_string3): Updated.
237 2013-01-25 Niibe Yutaka <gniibe@fsij.org>
239 * src/sha256.c (memcpy_bswap32): New function.
240 (bswap32_buf): Removed.
241 (sha256_finish): Use memcpy_bswap32.
243 2013-01-24 Niibe Yutaka <gniibe@fsij.org>
245 * src/sha256.c (v_cycle0): New. Special case of v_cycle(i,j)
246 where j == 0. Do byte order swapping here.
247 (v_cycle): Assume j != 0.
248 (sha256_process): Use v_cycle0 and v_cycle.
249 (sha256_update): Don't do byte order swapping.
250 (sha256_finish): Follow the change of sha256_process does byte
253 2012-12-17 Niibe Yutaka <gniibe@fsij.org>
255 * boards/FST_01_00: Added.
257 2012-10-30 Niibe Yutaka <gniibe@fsij.org>
261 * src/main.c (vcom_string3): Updated.
263 2012-10-26 Niibe Yutaka <gniibe@fsij.org>
265 * NEUG_USB_DEVICE_ID (Product_STRING): Rename to NeuG True RNG.
267 2012-10-23 Niibe Yutaka <gniibe@fsij.org>
269 * src/random.c (neug_consume_random): New.
271 * src/main.c (copy_to_tx): New.
272 (main): Call neug_consume_random.
274 2012-10-17 Niibe Yutaka <gniibe@fsij.org>
276 * src/main.c (main): Wait for random number generation (instead of
279 2012-10-16 Niibe Yutaka <gniibe@fsij.org>
281 * src/random.c (neug_get_nonblock): New function.
283 * src/main.c (RANDOM_BYTES_LENGTH): Now, it's 64 to fill Tx
285 (main): Fill 64-byte Tx buffer if possible.
287 2012-10-15 Niibe Yutaka <gniibe@fsij.org>
289 * tool/neug_check.py (main): Display USB strings.
291 2012-10-13 Niibe Yutaka <gniibe@fsij.org>
293 * boards/STBEE_MINI/board.c [!DFU_SUPPORT] (boardInit): Don't run
294 when "user switch" is pushed. This is for JTAG/SWD debugger.
296 2012-10-12 Niibe Yutaka <gniibe@fsij.org>
298 * src/main.c (neug_setup): Support neug_*_max.
300 * src/random.c (ep_process): Enable health tests for
302 (rng): Don't use the result on error for NEUG_MODE_RAW.
303 (neug_rc_max, neug_p64_max, neug_p4k_max): New.
304 (repetition_count_test, adaptive_proportion_64_test)
305 (adaptive_proportion_4096_test): Record maximum counts.
306 (noise_source_cnt_max_reset): New.
307 (neug_mode_select): Call noise_source_cnt_max_reset on mode
310 * tool/neug_check.py (get_info): Rename.
311 (main): Support max counts.
313 2012-10-11 Niibe Yutaka <gniibe@fsij.org>
315 * src/random.c (EP_ROUND_RAW_DATA_INPUTS): Set it to 32.
317 * tool/dfuse.py: Update from Gnuk 1.0.1.
319 * src/chconf.h (CORTEX_VTOR_INIT): Define.
321 * src/neug.ld.in (.sys): Follow the change of file layout.
323 * src/halconf.h (HAL_USE_EXT, HAL_USE_RTC): Define.
324 (ADC_USE_WAIT, ADC_USE_MUTUAL_EXCLUSION, SERIAL_BUFFERS_SIZE):
327 * boards/FST_01/mcuconf.h (STM32_RTCSEL): Define.
328 (STM32_USBPRE, STM32_MCO): Remove.
329 * boards/STBEE/mcuconf.h: Likewise.
330 * boards/STM8S_DISCOVERY/mcuconf.h: Likewise.
331 * boards/OLIMEX_STM32_H103/mcuconf.h: Likewise.
332 * boards/STBEE_MINI/mcuconf.h: Likewise.
333 * boards/CQ_STARM/mcuconf.h: Likewise.
334 * boards/STM32_PRIMER2/mcuconf.h: Likewise.
336 * boards/common/mcuconf-common.h (STM32_NO_INIT)
337 (STM32_HSI_ENABLED, STM32_LSI_ENABLED, STM32_HSE_ENABLED)
338 (STM32_LSE_ENABLED, STM32_USB_CLOCK_REQUIRED, STM32_USBPRE)
339 (STM32_MCOSEL, STM32_PVD_ENABLE, STM32_PLS): Define.
341 * chibios: Updated to 2.4.3.
343 * src/usb_stm32f103.c: Rename (was: usb-lld.c).
344 * src/Makefile.in (CSRC): Follow the rename.
346 2012-10-10 Niibe Yutaka <gniibe@fsij.org>
348 * src/random.c (rng_gen): Remove.
349 (rng): Merge rng_gen, avoiding bigger lock.
350 (neug_mode_select): Better synchronization to rng thread.
352 2012-10-09 Niibe Yutaka <gniibe@fsij.org>
356 * src/main.c (vcom_string3): Updated.
358 2012-10-05 Niibe Yutaka <gniibe@fsij.org>
360 * src/main.c (neug_state): Remove.
361 (neug_ctrl_write_finish, vcom_port_data_setup, EP1_IN_Callback)
362 (main): Use ->p_state (was: neug_state).
363 (main): Call chThdSleep (was: chEvtWaitOneTimeout).
365 2012-10-03 Niibe Yutaka <gniibe@fsij.org>
367 * src/main.c (USB_NEUG_GET_INFO): New.
369 * tool/neug_check.py: Show mode and errors.
371 * src/adc_stm32f103.c (adc_lld_serve_rx_interrupt)
372 (adc_start_conversion): Filter by CRC32.
373 * src/random.c (ep_init, ep_fill_wbuf, ep_process): Filter by CRC32.
374 (neug_init): CRC32 initialization.
376 2012-10-02 Niibe Yutaka <gniibe@fsij.org>
378 * src/random.c: Use our own ADC driver.
380 * src/halconf.h (HAL_USE_ADC): Set FALSE.
381 (STM32_DMA_REQUIRED): Define here.
383 * src/chconf.h (CH_USE_SEMAPHORES): Set FALSE.
385 * src/Makefile.in (CSRC): Add adc_stm32f103.c.
387 * src/adc.h, src/adc_stm32f103.c: New.
389 * src/random.c (NEUG_ADC_SETTING1_SMPR1): Tweak.
391 2012-10-01 Niibe Yutaka <gniibe@fsij.org>
393 * src/random.c (adc2_start): Add SCAN for ADC2.
394 (adcgrpcfg, NEUG_ADC_SETTING1_SMPR1, NEUG_ADC_SETTING2_SMPR1):
395 ADC1 three channels and ADC2 two channels, one same channel.
397 * boards/FST_01/board.h: Use default ADC settings.
398 * boards/OLIMEX_STM32_H103/board.h (NEUG_ADC_SETTING2_SMPR1)
399 (NEUG_ADC_SETTING2_SMPR2, NEUG_ADC_SETTING2_SQR3)
400 (NEUG_ADC_SETTING2_NUM_CHANNELS): Define.
402 * tool/neug_check.py: New.
403 * src/main.c (neug_setup, USB_NEUG_GET_ERR_COUNT): New.
405 2012-09-28 Niibe Yutaka <gniibe@fsij.org>
407 * src/random.c (neug_mode_select): Rename (was: neug_select).
408 Implement raw sample data output mode (with NEUG_MODE_RAW_DATA),
409 raw lsb data (before conditioning) is with NEUG_MODE_RAW_LSB.
411 2012-09-27 Niibe Yutaka <gniibe@fsij.org>
413 * src/random.c (ep_process): Feedback "additiona input" is now
414 half of previous output.
416 * boards/STBEE_MINI/board.h (NEUG_NON_DEFAULT_ADC_CHANNEL): New.
417 (VAL_GPIOACRL): Use PA1 and PA2 for NeuG's analog input.
418 (VAL_GPIOCCRL): Revert previous change.
419 * boards/STBEE_MINI/mcuconf.h (STM32_PPRE2, STM32_ADCPRE): Revert.
421 * src/main.c (RANDOM_BYTES_LENGTH): 32 is best for SHA-256
424 * src/random.c (adc2_stop, ep_process): New.
425 (rng_gen): Call ep_process.
427 2012-09-26 Niibe Yutaka <gniibe@fsij.org>
429 * boards/STM8S_DISCOVERY/mcuconf.h (STM32_PPRE2, STM32_ADCPRE):
430 12MHz ADC clock gives us more speed.
431 * boards/STM8S_DISCOVERY/board.h (VAL_GPIOCCRL): Digital push pull
432 output 50MHz gives us more entropy.
434 * boards/STBEE/mcuconf.h (STM32_PPRE2, STM32_ADCPRE): Ditto.
435 * boards/STBEE/board.h (VAL_GPIOCCRL): Ditto.
437 * boards/STBEE_MINI/mcuconf.h (STM32_PPRE2, STM32_ADCPRE): Ditto.
438 * boards/STBEE_MINI/board.h (VAL_GPIOCCRL): Ditto.
440 * boards/OLIMEX_STM32_H103/mcuconf.h (STM32_PPRE2, STM32_ADCPRE):
442 * boards/OLIMEX_STM32_H103/board.h (VAL_GPIOCCRL): Ditto.
444 * boards/FST_01/mcuconf.h (STM32_PPRE2, STM32_ADCPRE): Ditto.
445 * boards/FST_01/board.h (VAL_GPIOCCRL): Ditto.
447 * boards/CQ_STARM/mcuconf.h (STM32_PPRE2, STM32_ADCPRE): Ditto.
448 * boards/CQ_STARM/board.h (VAL_GPIOCCRL): Ditto.
450 2012-09-25 Niibe Yutaka <gniibe@fsij.org>
452 * src/random.c (adc2_start): New function.
453 (adcgrpcfg): Dual fast interleaved mode.
454 (rng_gen): Four-byte at a time.
455 (rng): Override DMA settings for 32-bit, and call adc2_start.
457 * src/random.c (adcgrpcfg): To acquire more entropy and more speed,
458 our choice is IN10 and IN11 (which is unconnected).
460 2012-09-20 Niibe Yutaka <gniibe@fsij.org>
462 * src/main.c (main): Call neug_select.
463 * src/random.c (neug_select): New.
464 (rng_gen): Implement Raw output.
465 (hash_df_initial_string): Fix (was: 32, no of bytes).
466 (rng): Implement error recovery.
468 2012-09-19 Niibe Yutaka <gniibe@fsij.org>
470 * tool/neug_upgrade.py: New.
472 * src/main.c (main): Support reGNUal.
473 * src/neug.ld.in (__ram_end__): Define.
474 * src/random.c (rng): Finish upon request of termination.
476 * src/neug.h (neug_fini): New.
478 2012-09-18 Niibe Yutaka <gniibe@fsij.org>
480 * src/random.c (NUM_NOISE_INPUTS, REPITITION_COUNT_TEST_CUTOFF)
481 (ADAPTIVE_PROPORTION_64_TEST_CUTOFF)
482 (ADAPTIVE_PROPORTION_4096_TEST_CUTOFF): Change for draft SP 800-90b,
483 the section 6.2 "Full Entropy Source Requirements".
485 2012-09-13 Niibe Yutaka <gniibe@fsij.org>
487 * src/aes-constant-ft.c: New (from Gnuk).
489 2012-09-12 Niibe Yutaka <gniibe@fsij.org>
491 * src/sha256.c, src/sha256.h: New (from Gnuk).
493 * boards/STBEE/board.h (GPIOD_USB_ENABLE): Fix.
495 2012-09-11 Niibe Yutaka <gniibe@fsij.org>
497 Health tests (SP 800-90b).
498 * src/random.c (repetition_count_test)
499 (adaptive_proportion_64_test, adaptive_proportion_4096_test): New.
501 2012-09-10 Niibe Yutaka <gniibe@fsij.org>
503 * NEUG_USB_DEVICE_ID: New file.
505 * src/main.c: Include usb-vid-pid-ver.c.inc and usb-strings.c.inc.
507 * src/configure (vidpid): New.
509 2012-08-30 Niibe Yutaka <gniibe@fsij.org>
513 2012-08-27 Niibe Yutaka <gniibe@fsij.org>
515 Use WELL random number generator to whiten noise input.
516 * src/random.c (NUM_NOISE_INPUTS): Now, it's 6.
517 (tmt_init, tmt_one_step, tmt_value): Remove.
518 (well512a_step): New function. WELL random number generator.
519 (neug_prng_reseed): Remove.
521 * src/main.c (main): Call neug_flash with time interval 2500ms,
523 Don't call neug_prng_reseed.
526 * src/neug.h (NEUG_PRE_LOOP): It's 64 now (was: 32).
528 2012-08-13 Niibe Yutaka <gniibe@fsij.org>
530 * src/main.c (RANDOM_BYTES_LENGTH): It's now 60 (was: 32).
531 (neug_device_reset, neug_ctrl_write_finish)
532 (vcom_port_data_setup, neug_setup, neug_get_descriptor)
533 (neug_setup_endpoints_for_interface, neug_usb_event)
534 (neug_interface, Vector90, EP1_IN_Callback, EP2_IN_Callback)
535 (EP3_OUT_Callback): New.
536 (main): Now use usb_lld_* functions (was: ChibiOS SDU driver).
538 * boards/*/board.c (USB_Cable_Config, set_led): Remove.
539 , boards/*/board.h (SET_USB_CONDITION, SET_LED_CONDITION)
540 (GPIO_USB, IOPORT_USB, GPIO_LED, IOPORT_LED): Define.
542 * boards/common/board-common.c [DFU_SUPPORT] (__early_init): Don't
543 set SCB->VTOR here (it's done in reset in src/sys.c).
545 * src/halconf.h (HAL_USE_SERIAL_USB, HAL_USE_USB): Not define.
546 * src/Makefile.in (CSRC): Add sys.c and usb_lld.c
547 * src/sys.h, src/sys.c: New files (from Gnuk).
548 * src/usb_lld.h, src/usb_lld.c: New files (from Gnuk).
550 2011-11-14 Niibe Yutaka <gniibe@fsij.org>
554 * src/Makefile.in (MCFLAGS): Override MCFLAGS option for newer
555 GCC of summon-arm-toolchain to add -mfix-cortex-m3-ldrd.
556 NOTE: This should not be needed (as -mcpu=cortex-m3 defaults
557 to -mfix-cortex-m3-ldrd for GCC-proper), but it is needed
558 to select arm-none-eabi/lib/thumb2/libc.a correctly.
560 * boards/common/board-common.c (__early_init): Revert change of
563 * boards/FST_01/{mcuconf.h,board.h,board.c}: New.
565 * src/main.c (my_sduRequestsHook): New.
566 (LED_ONESHOT_SHORT, LED_ONESHOT_LONG): New.
567 (led_blinker): Support LED_ONESHOT_SHORT and LED_ONESHOT_LONG.
568 (main): Call neug_prng_reseed for each new connection.
570 2011-10-07 NIIBE Yutaka <gniibe@fsij.org>
572 * src/random.c (neug_wait_full): New (from Gnuk).
574 2011-10-06 NIIBE Yutaka <gniibe@fsij.org>
576 * src/random.c (neug_flush): New.
577 (neug_prng_reseed): Call neug_flush.
579 2011-10-05 NIIBE Yutaka <gniibe@fsij.org>
581 * boards/common/board-common.c (__early_init): Set MSP register
584 2011-10-04 NIIBE Yutaka <gniibe@fsij.org>
586 * src/chconf.h (THREAD_CONTEXT_SWITCH_HOOK): New.
588 * src/Makefile.in: Follow the change of ChibiOS 2.3.3 (new
589 directory structure of platforms/STM32F1xx).
591 * src/main.c (vcom_configuration_descriptor_data, usb_event):
592 Follow the change of ChibiOS 2.3.3 (USB_CDC_*).
593 (vcom_string3): Version 0.01.
595 * src/configure (MEMORY_SIZE): New.
597 * src/neug.ld.in (@MEMORY_SIZE@): New (for HD device like STBEE).
598 (.stacks): New in newer ChibiOS (>= 2.3.3).
600 * src/random.c (adccb_err): New.
601 (adcgrpcfg): Add adccb_err.
603 * chibios: Updated to trunk of 2.3.3.
605 2011-09-27 NIIBE Yutaka <gniibe@fsij.org>
607 * src/random.c (adcgrpcfg): Fix configuration value (had old
608 values by old example).
610 2011-09-22 NIIBE Yutaka <gniibe@fsij.org>
612 * src/random.c (ROTATE): Remove.
614 (ep_add): Use SHIFT_RIGHT.
616 2011-09-21 NIIBE Yutaka <gniibe@fsij.org>
618 * src/random.c (ep_output): Bug fix for second argument of
619 fnv32_hash, and change the way to place values into the buffer.
620 (ep_add): Feedback byte always shift 1-bit, entropy_bit sometimes.
622 2011-09-20 NIIBE Yutaka <gniibe@fsij.org>
624 * boards/STBEE/mcuconf.h, boards/STBEE/board.h: New.
625 * boards/STBEE/board.c: New.
626 * boards/common/board-common.c (pal_default_config): Add case for
628 * src/configure: Support STBEE.
630 * src/random.c (PROBABILITY_50_BY_TICK): New.
631 (ep_add): Use ROTATE for final feedback only.
633 (ep_output): Rename (was: ep_value). Use fnv32_hash.
635 2011-08-29 NIIBE Yutaka <gniibe@fsij.org>
637 * src/random.c (ep_add): New argument another_random_bit.
638 (crc32_top_bit, crc32_add_bit): Delete.
640 (rng_gen): Call ep_add with SysTick->VAL shake.
641 Don't shake PRNG by interrupt timing.
642 (neug_prng_reseed): New.
644 * src/main.c (main): Call neug_prng_reseed after new connection.
646 * src/neug.h (neug_prng_reseed): New.
648 2011-08-19 NIIBE Yutaka <gniibe@fsij.org>
650 * src/random.c (tmt_one_step): No argument.
651 (crc32_top_bit, crc32_add_bit): New.
652 (rng_gen): Have return value. Put interrupt timing entropy
653 to CRC32 shift register, and use the top bit of CRC32 to
654 shake the steps of TMT.
656 2011-08-10 NIIBE Yutaka <gniibe@fsij.org>
658 * boards/STM8S_DISCOVERY/mcuconf.h: New.
659 * boards/STM8S_DISCOVERY/board.h: New.
660 * boards/STM8S_DISCOVERY/board.c: New.
662 2011-07-22 NIIBE Yutaka <gniibe@fsij.org>
664 * boards/OLIMEX_STM32_H103/mcuconf.h (STM32_USBPRE): Add.
666 * src/main.c (main): Fix one shot logic.
668 2011-07-21 NIIBE Yutaka <gniibe@fsij.org>
670 * src/neug.h (NEUG_PRE_LOOP): New.
672 * src/main.c (led_blinker): New.
673 (main): Use led_blinker.
674 (main): Call neug_get before USB configuration at least
677 2011-07-14 NIIBE Yutaka <gniibe@fsij.org>
679 * src/configure: Support CQ_STARM.
680 * boards/CQ_STARM: Added.