Skip to content

Commit 76faba4

Browse files
committed
Fixed drivers
1 parent 5f52020 commit 76faba4

File tree

22 files changed

+500
-563
lines changed

22 files changed

+500
-563
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
idf_component_register(
2+
SRCS "buses.c"
3+
INCLUDE_DIRS include
4+
)

firmware/components/buses/Kconfig

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
menu "Buses"
2+
config BUS_VSPI_ENABLE
3+
bool "Enable the VSPI bus"
4+
default n
5+
6+
config PIN_NUM_VSPI_CLK
7+
depends on BUS_VSPI_ENABLE
8+
int "GPIO pin used for VSPI CLK"
9+
10+
config PIN_NUM_VSPI_MOSI
11+
depends on BUS_VSPI_ENABLE
12+
int "GPIO pin used for VSPI MOSI"
13+
14+
config PIN_NUM_VSPI_MISO
15+
depends on BUS_VSPI_ENABLE
16+
int "GPIO pin used for VSPI MISO"
17+
18+
config PIN_NUM_VSPI_WP
19+
depends on BUS_VSPI_ENABLE
20+
int "GPIO pin used for VSPI WP"
21+
default -1
22+
23+
config PIN_NUM_VSPI_HD
24+
depends on BUS_VSPI_ENABLE
25+
int "GPIO pin used for VSPI HD"
26+
default -1
27+
28+
config BUS_VSPI_DMA_CHANNEL
29+
depends on BUS_VSPI_ENABLE
30+
int "VSPI DMA channel"
31+
default 2
32+
range 0 2
33+
34+
config BUS_VSPI_MAX_TRANSFERSIZE
35+
depends on BUS_VSPI_ENABLE
36+
int "VSPI Maximum transfer size (in bytes)"
37+
default 4094
38+
39+
config BUS_HSPI_ENABLE
40+
bool "Enable the HSPI bus"
41+
default n
42+
43+
config PIN_NUM_HSPI_CLK
44+
depends on BUS_HSPI_ENABLE
45+
int "GPIO pin used for HSPI CLK"
46+
47+
config PIN_NUM_HSPI_MOSI
48+
depends on BUS_HSPI_ENABLE
49+
int "GPIO pin used for HSPI MOSI"
50+
51+
config PIN_NUM_HSPI_MISO
52+
depends on BUS_HSPI_ENABLE
53+
int "GPIO pin used for HSPI MISO"
54+
55+
config PIN_NUM_HSPI_WP
56+
depends on BUS_HSPI_ENABLE
57+
int "GPIO pin used for HSPI WP"
58+
default -1
59+
60+
config PIN_NUM_HSPI_HD
61+
depends on BUS_HSPI_ENABLE
62+
int "GPIO pin used for HSPI HD"
63+
default -1
64+
65+
config BUS_HSPI_DMA_CHANNEL
66+
depends on BUS_HSPI_ENABLE
67+
int "HSPI DMA channel"
68+
default 2
69+
range 0 2
70+
71+
config BUS_HSPI_MAX_TRANSFERSIZE
72+
depends on BUS_HSPI_ENABLE
73+
int "HSPI Maximum transfer size (in bytes)"
74+
default 4094
75+
76+
config BUS_I2C0_ENABLE
77+
bool "Enable I2C controller 0"
78+
default n
79+
80+
config PIN_NUM_I2C0_DATA
81+
depends on BUS_I2C0_ENABLE
82+
int "GPIO pin used for I2C0 data"
83+
84+
config PIN_NUM_I2C0_CLK
85+
depends on BUS_I2C0_ENABLE
86+
int "GPIO pin used for I2C0 clock"
87+
88+
config PIN_PULL_I2C0_DATA
89+
depends on BUS_I2C0_ENABLE
90+
bool "Enable the built-in pull-up for the I2C0 data pin"
91+
default n
92+
93+
config PIN_PULL_I2C0_CLK
94+
depends on BUS_I2C0_ENABLE
95+
bool "Enable the built-in pull-up for the I2C0 clock pin"
96+
default n
97+
98+
config I2C0_MASTER_FREQ_HZ
99+
depends on BUS_I2C0_ENABLE
100+
int "I2C0 speed in Hz"
101+
default 100000
102+
103+
config BUS_I2C1_ENABLE
104+
bool "Enable I2C controller 1"
105+
default n
106+
107+
config PIN_NUM_I2C1_DATA
108+
depends on BUS_I2C1_ENABLE
109+
int "GPIO pin used for I2C1 data"
110+
111+
config PIN_NUM_I2C1_CLK
112+
depends on BUS_I2C1_ENABLE
113+
int "GPIO pin used for I2C1 clock"
114+
115+
config PIN_PULL_I2C1_DATA
116+
depends on BUS_I2C1_ENABLE
117+
bool "Enable the built-in pull-up for the I2C1 data pin"
118+
default n
119+
120+
config PIN_PULL_I2C1_CLK
121+
depends on BUS_I2C1_ENABLE
122+
bool "Enable the built-in pull-up for the I2C1 clock pin"
123+
default n
124+
125+
config I2C1_MASTER_FREQ_HZ
126+
depends on BUS_I2C1_ENABLE
127+
int "I2C1 speed in Hz"
128+
default 100000
129+
endmenu

0 commit comments

Comments
 (0)