Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split ch641 from v0 #6

Merged
merged 4 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions data/family/CH641.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
- signal: EXTI8
interrupt: EXTI15_8

- name: EXTEND
address: 0x40023800
registers:
kind: extend
version: ch641
block: EXTEND

- name: RCC
address: 0x40021000
registers:
Expand Down Expand Up @@ -310,7 +317,7 @@
address: 0x40012400
registers:
kind: adc
version: v0
version: ch641
block: ADC
rcc:
bus_clock: PCLK2
Expand Down Expand Up @@ -341,7 +348,7 @@
signal: IN6
- pin: PB7
signal: IN7
# TODO: ISP pin, IN8
# ISP pin is binded to IN8
- pin: PB8
signal: IN9
- pin: PB0
Expand All @@ -361,3 +368,24 @@
signal: ETR
remap: 0

- name: USBPD
address: 0x40027000
registers:
kind: usbpd
version: ch641
block: USBPD
rcc:
bus_clock: HCLK
kernel_clock: HCLK
enable:
register: AHBPCENR
field: USBPDEN
interrupts:
- signal: GLOBAL
interrupt: USBPD
- signal: WKUP
interrupt: USBPD_WKUP
pins:
- { pin: "PB0", signal: "CC1" }
- { pin: "PB1", signal: "CC2" } # No Rd
- { pin: "PB9", signal: "CC3" }
Loading
Loading