Skip to content

Commit

Permalink
fix: usb
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 14, 2024
1 parent 8fa4b1a commit 8440bca
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions data/family/CH32V1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@
kernel_clock: HCLK
enable:
register: AHBPCENR
field: USBFSEN
field: USBHDEN
reset:
register: AHBPRSTR
field: USBFSRST
register: AHBRSTR
field: USBHDRST
pins:
- pin: PA11
signal: DM
Expand Down
2 changes: 1 addition & 1 deletion data/interrupts/CH32V2_D6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DMA1_CHANNEL7: 33
ADC: 34
# USB HP and CAN1 TX
USB_HP_CAN1_TX: 35
# USB LP and CAN1RX0
# USB LP and CAN1 RX0
USB_LP_CAN1_RX0: 36
# CAN1 RX1
CAN1_RX1: 37
Expand Down
4 changes: 1 addition & 3 deletions data/peripherals/FV2x_V3x_USBFS.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# USBFS aka. OTG_FS
# base address: 0x50000000

# USBFS, without OTG cfg registers
- name: USBFS
address: 0x50000000
registers:
Expand Down
1 change: 1 addition & 0 deletions data/peripherals/FV2x_V3x_USBHS.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# USB2
- name: USBHS
address: 0x40023400
registers:
Expand Down
2 changes: 0 additions & 2 deletions data/peripherals/FV2x_V3x_USB_OTG_FS.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# USBFS aka. OTG_FS
# base address: 0x50000000

- name: OTG_FS
address: 0x50000000
registers:
Expand Down
2 changes: 1 addition & 1 deletion data/registers/rcc_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fieldset/AHBPCENR:
fieldset/AHBRSTR:
description: AHB reset register(RCC_APHBRSTR).
fields:
- name: USBHSRST
- name: USBHDRST
description: USBHD reset.
bit_offset: 12
bit_size: 1
Expand Down

0 comments on commit 8440bca

Please sign in to comment.