fix locking of USB_MTX
[gnuk/neug.git] / ChangeLog
index d3220b7..fd70c4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,22 @@
+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