summaryrefslogtreecommitdiff
path: root/port/fsdev
AgeCommit message (Collapse)Author
2026-09-26update(port): change low level api from weak to extern, users must implement ↵sakumisu
this Signed-off-by: sakumisu <[email protected]>
2026-08-29port/fsdev: log error when USBFS clock divider has no matchOnlyoutzZ
Report an error through USB_LOG_ERR when SystemCoreClock does not match any supported 48/96/144/192/240 MHz divider case, instead of silently leaving the USBFS prescaler unconfigured.
2026-08-29fix(port/fsdev): address N32H4x glue review findingsOnlyoutzZ
- usb_glue_nation.c: match usb_dc_low_level_init/deinit to the (void) weak stubs in usb_dc_fsdev.c and guard on g_usbdev_bus[0] (the old (uint8_t busid) signature read garbage at the no-arg call site) - usb_glue_nation.c: drop NVIC_PriorityGroupConfig from the driver hook; it reprograms SCB->AIRCR for the whole system, priority grouping now stays with board/application startup code - usb_glue_nation.c: derive the USBFS prescaler from SystemCoreClock at runtime instead of a per-part compile-time table (fixes N32H475 landing in the 240 MHz branch; adapts to any configured PLLCLK) - add docstrings to the functions touched by this diff
2026-08-29port/fsdev: add N32H4x (N32H47x_48x / N32H49x) USB FS device supportOnlyoutzZ
Add full-speed USB device (USBFS) support for the Nations N32H4x family (N32H47x_48x and N32H49x), whose Synopsys USBFS core re-arranged the register and bit-field layout of the STM32 version: - usb_glue_nation.c: chip-level bring-up (48 MHz USB clock from PLL, DM/DP GPIO with a weak overridable hook, NVIC USB_FS_LP_IRQn dispatch) - usb_fsdev_reg.h: re-map USB_EPn/CNTR/ISTR/BTABLE/FN/DADDR register layout and every affected bit macro for N32H4x (32-bit EP registers, no BCDR; DP pull-up moved to CNTR.PU) - usb_dc_fsdev.c: N32H4x power-on sequence (clear PD, wait, clear FRST) and EP_ID position handling - README: document the supported N32H4x parts
2025-07-21update(port): remove CONFIG_USBDEV_EP_NUM & CONFIG_USBHOST_PIPE_NUM for some ↵sakumisu
ips because they are constant Signed-off-by: sakumisu <[email protected]>
2025-07-13update(port/fsdev): assert for fsdev logsakumisu
Signed-off-by: sakumisu <[email protected]>
2025-05-15update(port/fsdev): assert for fsdev isosakumisu
Signed-off-by: sakumisu <[email protected]>
2025-05-10update(port): add sof supportsakumisu
Signed-off-by: sakumisu <[email protected]>
2025-05-10update(port): add USB_ASSERT_MSG for ep num checksakumisu
Signed-off-by: sakumisu <[email protected]>
2025-04-25feat(port/fsdev/usb_glue_st): implement low level apisakumisu
Signed-off-by: sakumisu <[email protected]>
2025-02-09docs: update readmesakumisu
Signed-off-by: sakumisu <[email protected]>
2024-11-27update(port/fsdev): add check for iso, we do not supportsakumisu
2024-07-26feat(port): add remote wakeup apisakumisu
2024-07-08feat(port): implement usbd_ep_is_stalled apisakumisu
2024-04-29remove port param in usbd_get_port_speedsakumisu
2024-04-23update missing licensesakumisu
2024-04-16add missing licensesakumisu
2024-02-18config busid and regbase in usbh_initialize and usbd_initializesakumisu
2024-02-06support multi port api for devicesakumisu
2024-01-23remove ununsed macrosakumisu
2024-01-06fix macro namesakumisu
2023-12-21user must define some configs in usb_config.h when use fsdev/musb/dwc2sakumisu
2023-12-10replace struct usbd_endpoint_cfg with struct usb_endpoint_descriptor in ↵sakumisu
usbh_ep_open api
2022-11-19add usbd_get_port_speed api to use different config descriptorssakimisu
2022-09-17add bcdr register for usb connectsakumisu
2022-08-20add ep_enable param to check if ep is enable when transfersakumisu
2022-07-28refactor dcd api and ep in/out irq callback processsakumisu
2022-06-20fix fsdev pma offset max size caculatesakumisu
2022-06-15remove usb_ prefixsakumisu
2022-06-14rename struct namesakumisu
2022-06-04fix ep set stall by the wrong directionsakumisu
2022-06-02fix endpoint buffer address set error bug.add print color define.WoodData
2022-05-24Check ep write is or not complete when not called in isrsakumisu
2022-03-11fix usb_dc_deinit return typesakumisu
2022-03-11remove unused commentssakumisu
2022-02-20update dcd portingsakumisu
2022-02-18add volatile for dev_addrsakumisu
2022-01-26delete repeatable filesakumisu
2022-01-11rename usb ip header filesakumisu
2021-12-12update porting readmesakumisu
2021-12-12complete fsdev and synopsys usb otg ip dcd portinngsakumisu
2021-12-05add default usb irq name for USBD_IRQHandlersakumisu
2021-12-04add common usb ip dcd portingsakumisu