1menu "Hardware Drivers Config"
2
3config SOC_ACM32F070RBT7
4    bool
5    select SOC_SERIES_ACM32F0
6    select RT_USING_COMPONENTS_INIT
7    select RT_USING_USER_MAIN
8    default y
9
10config SOC_SRAM_START_ADDR
11    hex
12    default 0x20000000
13
14config SOC_SRAM_SIZE
15    hex
16    default 0x20
17
18config SOC_FLASH_START_ADDR
19    hex
20    default 0x00000000
21
22config SOC_FLASH_SIZE
23    hex
24    default 0x80
25
26menu "Onboard Peripheral Drivers"
27
28endmenu
29
30menu "On-chip Peripheral Drivers"
31
32    menu "Hardware GPIO"
33        config BSP_USING_GPIO1
34            bool "Enable GPIOAB"
35            default y
36            select RT_USING_PIN
37        config BSP_USING_GPIO2
38            bool "Enable GPIOCD"
39            default y
40            select RT_USING_PIN
41    endmenu
42
43    config BSP_USING_ADC
44        bool "Enable ADC"
45        select RT_USING_ADC
46        default n
47
48    menu "Hardware UART"
49        config BSP_USING_UART1
50            bool "Enable UART1 (PA9/PA10)"
51            default y
52            select RT_USING_SERIAL
53
54        config BSP_USING_UART2
55            bool "Enable UART2 (PA2/PA3)"
56            default y
57            select RT_USING_SERIAL
58
59        if BSP_USING_UART2
60            config BSP_UART2_RX_USING_DMA
61                bool "Enable UART2 RX DMA"
62                depends on BSP_USING_UART2
63                select RT_SERIAL_USING_DMA
64                default n
65
66            config BSP_UART2_TX_USING_DMA
67                bool "Enable UART2 TX DMA"
68                depends on BSP_USING_UART2
69                select RT_SERIAL_USING_DMA
70                default n
71        endif
72
73        config BSP_USING_UART3
74            bool "Enable UART3 (PC4/PC5)"
75            default n
76            select RT_USING_SERIAL
77
78        if BSP_USING_UART3
79            config BSP_UART3_RX_USING_DMA
80                bool "Enable UART3 RX DMA"
81                depends on BSP_USING_UART3
82                select RT_SERIAL_USING_DMA
83                default n
84
85            config BSP_UART3_TX_USING_DMA
86                bool "Enable UART3 TX DMA"
87                depends on BSP_USING_UART3
88                select RT_SERIAL_USING_DMA
89                default n
90        endif
91    endmenu
92
93    config BSP_USING_RTC
94        bool "Enable RTC"
95        select RT_USING_RTC
96        default n
97
98    menu "Hardware I2C"
99        config BSP_USING_I2C1
100            bool "Enable I2C1"
101            default n
102            select RT_USING_I2C
103        config BSP_USING_I2C2
104            bool "Enable I2C2"
105            default n
106            select RT_USING_I2C
107    endmenu
108
109    menuconfig BSP_USING_SOFT_I2C
110        bool "Enable Soft I2C"
111        select RT_USING_I2C
112        select RT_USING_I2C_BITOPS
113        select RT_USING_PIN
114        default n
115        if BSP_USING_SOFT_I2C
116            menuconfig BSP_USING_I2C0
117                bool "Enable I2C1 BUS (software simulation)"
118                default n
119                if BSP_USING_I2C0
120                    config BSP_I2C0_SCL_PIN
121                        int "i2c0 scl pin number (PD, 6)"
122                        range 0 63
123                        default 54
124                    config BSP_I2C0_SDA_PIN
125                        int "I2C0 sda pin number (PD, 7)"
126                        range 0 63
127                        default 55
128                endif
129        endif
130
131    menu "Hardware CAN"
132        config BSP_USING_CAN1
133            bool "Enable CAN1"
134            default n
135            select RT_USING_CAN
136    endmenu
137
138    menu "Hardware TIMER"
139        config BSP_USING_TIM1
140            bool "Enable Timer1"
141            default n
142            select RT_USING_HWTIMER
143        config BSP_USING_TIM3
144            bool "Enable Timer3"
145            default n
146            select RT_USING_HWTIMER
147        config BSP_USING_TIM6
148            bool "Enable Timer6"
149            default n
150            select RT_USING_HWTIMER
151        config BSP_USING_TIM14
152            bool "Enable Timer14"
153            default n
154            select RT_USING_HWTIMER
155        config BSP_USING_TIM15
156            bool "Enable Timer15"
157            default n
158            select RT_USING_HWTIMER
159        config BSP_USING_TIM16
160            bool "Enable Timer16"
161            default n
162            select RT_USING_HWTIMER
163        config BSP_USING_TIM17
164            bool "Enable Timer17"
165            default n
166            select RT_USING_HWTIMER
167    endmenu
168
169    menu "Hardware WDT"
170        config BSP_USING_WDT
171            bool "Enable Watch Dog Timer"
172            default n
173            select RT_USING_WDT
174        config BSP_USING_IWDT
175            bool "Enable Independent Watch Dog Timer"
176            default n
177            select RT_USING_WDT
178    endmenu
179
180    config BSP_USING_LCD
181        bool "Enable LCD"
182        default n
183
184    menu "Hardware SPI"
185        config BSP_USING_SPI1
186            bool "Enable SPI1"
187            select RT_USING_SPI
188            default n
189
190        if BSP_USING_SPI1
191            config BSP_SPI1_RX_USING_DMA
192                bool "Enable SPI1 RX DMA"
193                default n
194
195            config BSP_SPI1_TX_USING_DMA
196                bool "Enable SPI1 TX DMA"
197                default n
198        endif
199
200        config BSP_USING_SPI2
201            bool "Enable SPI2"
202            select RT_USING_SPI
203            default n
204
205        if BSP_USING_SPI2
206            config BSP_SPI2_RX_USING_DMA
207                bool "Enable SPI2 RX DMA"
208                default n
209
210            config BSP_SPI2_TX_USING_DMA
211                bool "Enable SPI2 TX DMA"
212                default n
213        endif
214    endmenu
215
216    menu "Hardware CRYPTO"
217        config BSP_USING_CRC
218            select RT_HWCRYPTO_USING_CRC
219            bool "Enable CRC"
220            default n
221            select RT_USING_HWCRYPTO
222        config BSP_USING_AES
223            select RT_HWCRYPTO_USING_AES
224            bool "Enable AES"
225            default n
226            select RT_USING_HWCRYPTO
227
228        config BSP_USING_HRNG
229            select RT_HWCRYPTO_USING_RNG
230            bool "Enable HRNG"
231            default n
232            select RT_USING_HWCRYPTO
233    endmenu
234
235    config BSP_USING_CMP
236        bool "Enable Analog Voltage Comparer"
237        default n
238
239    config BSP_USING_OPA
240        bool "Enable Operational Amplifier"
241        default n
242
243    config BSP_USING_TKEY
244        bool "Enable Touch Key"
245        select RT_USING_TOUCH
246        default n
247
248    config BSP_USING_RPMU
249        bool "Enable RTC PMU"
250        select RT_USING_PM
251        default n
252
253endmenu
254
255menu "Board extended module Drivers"
256
257endmenu
258
259endmenu
260
261