Skip to content

Commit ea7624e

Browse files
XxChangandelf
andauthored
Add supports to DVP (#14)
* add dvp supports --------- Co-authored-by: Andelf <[email protected]>
1 parent 3ce4cce commit ea7624e

File tree

4 files changed

+413
-0
lines changed

4 files changed

+413
-0
lines changed

data/chips/CH32V307VCT6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ cores:
7676
- "../peripherals/FV2x_V3x_SDIO.yaml"
7777
- "../peripherals/FV2x_V3x_CAN1.yaml"
7878
- "../peripherals/FV2x_V3x_CAN2.yaml"
79+
- "../peripherals/V3x_DVP.yaml"
7980

8081
include_interrupts: "../interrupts/CH32V3.yaml"
8182
include_dma_channels:

data/interrupts/CH32V3.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ OTG_FS: 83
127127
USBHS_WKUP: 84
128128
# 85 - USBHS
129129
USBHS: 85
130+
# 86 - DVP global interrupt
131+
DVP: 86
130132
# 87 - USART6 global interrupt
131133
USART6: 87
132134
# 88 - USART7 global interrupt

data/peripherals/V3x_DVP.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
- name: DVP
2+
address: 0x50050000
3+
registers:
4+
kind: dvp
5+
version: v3
6+
block: DVP
7+
rcc:
8+
bus_clock: HCLK
9+
kernel_clock: HCLK
10+
enable:
11+
register: AHBPCENR
12+
field: DVP_EN
13+
reset:
14+
register: AHBRSTR
15+
field: DVPRST
16+
interrupts:
17+
- signal: GLOBAL
18+
interrupt: DVP
19+
pins:
20+
- pin: PA4
21+
signal: HSYNC
22+
- pin: PA5
23+
signal: VSYNC
24+
- pin: PA6
25+
signal: PCLK
26+
- pin: PA9
27+
signal: D0
28+
- pin: PA10
29+
signal: D1
30+
- pin: PC8
31+
signal: D2
32+
- pin: PC9
33+
signal: D3
34+
- pin: PC11
35+
signal: D4
36+
- pin: PB6
37+
signal: D5
38+
- pin: PB8
39+
signal: D6
40+
- pin: PB9
41+
signal: D7
42+
- pin: PC10
43+
signal: D8
44+
- pin: PC12
45+
signal: D9
46+
- pin: PD6
47+
signal: D10
48+
- pin: PD2
49+
signal: D11

0 commit comments

Comments
 (0)