)]}'
{
  "commit": "b640bd73b91d9acc409e76aad68356f3b2849185",
  "tree": "12b133e6a2c9500bc43fecfb379eb8d6520952f9",
  "parents": [
    "741776311b8f6e0c3fdbf4e00a9c3aff7cd577b2"
  ],
  "author": {
    "name": "hathach",
    "email": "thach@tinyusb.org",
    "time": "Sun Jul 12 05:20:17 2026 +0700"
  },
  "committer": {
    "name": "hathach",
    "email": "thach@tinyusb.org",
    "time": "Sun Jul 12 05:20:17 2026 +0700"
  },
  "message": "ch32h417: fix USBHS EP0 SETUP re-detect, EP0-OUT toggle, SOF dispatch\n\nApply correctness-review findings on the USB2 HS dcd (still pre-hardware):\n\n- EP0 control OUT arming now writes the full UEP0_RX_CTRL byte (DATA1|ACK) instead\n  of a read-modify-write, so RB_UEP_R_SETUP_IS is cleared - otherwise the data/\n  status OUT following a SETUP would be re-detected as a new SETUP and every control\n  transfer after the first would break. The SETUP handler likewise writes full\n  TX/RX bytes. This also fixes the missing DATA1 expected-toggle on a control-write\n  data stage.\n- Add the SOF interrupt branch (USBHS_UDIF_RX_SOF is a top-level INT_FG bit on this\n  IP, not an INT_ST token): dcd_sof_enable() armed SOF but the ISR dropped it, so\n  dcd_event_sof() was never delivered.\n- Drop the extra INT_FG\u003dUSBHS_UDIF_TRANSFER write: the vendor acknowledges a\n  transfer solely by clearing the per-endpoint DONE bit; the aggregate write could\n  clear a second endpoint\u0027s still-pending completion (only one is serviced per IRQ).\n\nBuild-verified (SPEED\u003dhigh links). Hardware validation still pending.\n\nCo-Authored-By: Claude Opus 4.8 (1M context) \u003cnoreply@anthropic.com\u003e\nClaude-Session: https://claude.ai/code/session_01QWhrtHjbSVMKcY68vxBwBm\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e9ad4e525fc089366dc61cda2b02bf89cc5f45f5",
      "old_mode": 33188,
      "old_path": "src/portable/wch/dcd_ch32h417_usbhs.c",
      "new_id": "8e8bb9a2aaea87ea1eb4ffef9179bfe9fcf39b50",
      "new_mode": 33188,
      "new_path": "src/portable/wch/dcd_ch32h417_usbhs.c"
    }
  ]
}
