1menu "Hardware Drivers Config"
2
3config SOC_APM32F091VC
4    bool
5    select SOC_SERIES_APM32F0
6    select RT_USING_COMPONENTS_INIT
7    select RT_USING_USER_MAIN
8    default y
9
10menu "Onboard Peripheral Drivers"
11
12endmenu
13
14menu "On-chip Peripheral Drivers"
15
16    config BSP_USING_GPIO
17        bool "Enable GPIO"
18        select RT_USING_PIN
19        default y
20
21    menuconfig BSP_USING_UART
22        bool "Enable UART"
23        default y
24        select RT_USING_SERIAL
25        if BSP_USING_UART
26            config BSP_USING_UART1
27                bool "Enable UART1"
28                default y
29            config BSP_USING_UART2
30                bool "Enable UART2"
31                default n
32        endif
33
34    menuconfig BSP_USING_ADC
35        bool "Enable ADC"
36        default n
37        select RT_USING_ADC
38        if BSP_USING_ADC
39            config BSP_USING_ADC1
40                bool "Enable ADC1"
41                default n
42        endif
43
44    menuconfig BSP_USING_DAC
45        bool "Enable DAC"
46        default n
47        select RT_USING_DAC
48        if BSP_USING_DAC
49            config BSP_USING_DAC1
50                bool "Enable DAC1"
51                default n
52        endif
53
54    menuconfig BSP_USING_ONCHIP_RTC
55        bool "Enable RTC"
56        select RT_USING_RTC
57        default n
58        if BSP_USING_ONCHIP_RTC
59            choice
60                prompt "Select clock source"
61                default BSP_RTC_USING_LSE
62
63                config BSP_RTC_USING_LSE
64                    bool "RTC USING LSE"
65
66                config BSP_RTC_USING_LSI
67                    bool "RTC USING LSI"
68            endchoice
69        endif
70
71    menuconfig BSP_USING_I2C
72        bool "Enable I2C BUS (software simulation)"
73        default n
74        select RT_USING_I2C
75        select RT_USING_I2C_BITOPS
76        select RT_USING_PIN
77        if BSP_USING_I2C
78            config BSP_USING_I2C1
79                bool "Enable I2C1 BUS"
80                if BSP_USING_I2C1
81                    comment "Notice: PB10 --> 26; PB11 --> 27"
82                    config BSP_I2C1_SCL_PIN
83                        int "i2c1 scl pin number"
84                        range 0 63
85                        default 26
86                    config BSP_I2C1_SDA_PIN
87                        int "I2C1 sda pin number"
88                        range 0 63
89                        default 27
90                endif
91            config BSP_USING_I2C2
92                bool "Enable I2C2 BUS"
93                if BSP_USING_I2C2
94                    comment "Notice: PA0 --> 0; PA1 --> 1"
95                    config BSP_I2C2_SCL_PIN
96                        int "i2c2 scl pin number"
97                        range 0 63
98                        default 22
99                    config BSP_I2C2_SDA_PIN
100                        int "I2C2 sda pin number"
101                        range 0 63
102                        default 23
103                endif
104            config BSP_USING_I2C3
105                bool "Enable I2C3 BUS"
106                if BSP_USING_I2C3
107                    comment "Notice: PB0 --> 16; PB1 --> 17"
108                    config BSP_I2C3_SCL_PIN
109                        int "i2c3 scl pin number"
110                        range 0 63
111                        default 8
112                    config BSP_I2C3_SDA_PIN
113                        int "I2C3 sda pin number"
114                        range 0 63
115                        default 41
116                endif
117        endif
118
119    menuconfig BSP_USING_SPI
120        bool "Enable SPI"
121        default n
122        select RT_USING_SPI
123        if BSP_USING_SPI
124            config BSP_USING_SPI1
125                bool "Enable SPI1"
126                default n
127
128            config BSP_USING_SPI2
129                bool "Enable SPI2"
130                default n
131        endif
132
133    menuconfig BSP_USING_TMR
134        bool "Enable Timer"
135        default n
136        select RT_USING_HWTIMER
137        if BSP_USING_TMR
138            config BSP_USING_TMR1
139                bool "Enable TMR1"
140                default n
141
142            config BSP_USING_TMR2
143                bool "Enable TMR2"
144                default n
145
146            config BSP_USING_TMR3
147                bool "Enable TMR3"
148                default n
149
150            config BSP_USING_TMR6
151                bool "Enable TMR6"
152                default n
153
154            config BSP_USING_TMR7
155                bool "Enable TMR7"
156                default n
157
158            config BSP_USING_TMR14
159                bool "Enable TMR14"
160                default n
161
162            config BSP_USING_TMR15
163                bool "Enable TMR15"
164                default n
165
166            config BSP_USING_TMR16
167                bool "Enable TMR16"
168                default n
169
170            config BSP_USING_TMR17
171                bool "Enable TMR17"
172                default n
173        endif
174
175    menuconfig BSP_USING_PWM
176        bool "Enable PWM"
177        default n
178        select RT_USING_PWM
179        if BSP_USING_PWM
180        menuconfig BSP_USING_PWM3
181            bool "Enable timer3 output PWM"
182            default n
183            if BSP_USING_PWM3
184                config BSP_USING_PWM3_CH1
185                    bool "Enable PWM3 channel1"
186                    default n
187
188                config BSP_USING_PWM3_CH2
189                    bool "Enable PWM3 channel2"
190                    default n
191
192                config BSP_USING_PWM3_CH3
193                    bool "Enable PWM3 channel3"
194                    default n
195
196                config BSP_USING_PWM3_CH4
197                    bool "Enable PWM3 channel4"
198                    default n
199            endif
200        endif
201
202    config BSP_USING_ON_CHIP_FLASH
203        bool "Enable on-chip FLASH"
204        default n
205
206    config BSP_USING_WDT
207        bool "Enable Watchdog Timer"
208        select RT_USING_WDT
209        default n
210
211endmenu
212
213menu "Board extended module Drivers"
214
215endmenu
216
217endmenu
218