1menu "Hardware Drivers Config"
2
3config SOC_MAX32660
4    bool
5    config SOC_MAX32660
6    select RT_USING_COMPONENTS_INIT
7    select RT_USING_USER_MAIN
8    select BSP_USING_UART
9    select BSP_USING_UART1
10    default y
11
12config SOC_MAXIM
13    bool
14    config SOC_MAXIM
15    default y
16
17menu "On-chip Peripheral Drivers"
18    config BSP_USING_GPIO
19        bool "Enable GPIO"
20        select RT_USING_PIN
21        default y
22
23    menuconfig BSP_USING_UART
24        bool "Enable UART"
25        default y
26        select RT_USING_SERIAL
27        if BSP_USING_UART
28            config BSP_USING_UART0
29                bool "Enable UART0"
30                default n
31
32            config BSP_UART0_RX_USING_DMA
33                bool "Enable UART0 RX DMA"
34                depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
35                default n
36
37            config BSP_USING_UART1
38                bool "Enable UART1"
39                default y
40
41            config BSP_UART1_RX_USING_DMA
42                bool "Enable UART1 RX DMA"
43                depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
44                default n
45        endif
46    config BSP_USING_SPI
47        bool "Enable SPI"
48        select RT_USING_SPI
49        default n
50
51        if BSP_USING_SPI
52            config BSP_USING_SPI0
53                bool "Enable SPI0 bus [MISO P0.4;MOSI P0.5;SCL P0.6;SS P0.7]"
54                default y
55
56            config BSP_USING_SPI1
57                bool "Enable SPI1 bus [MISO P0.0;MOSI P0.1;SCL P0.2;SS P0.3]"
58                default n
59            if BSP_USING_SPI1
60            config BSP_USING_SPI1A
61                bool "Use SPI1A. [MISO P0.10;MOSI P0.11;SCL P0.12;SS P0.13]"
62                default n
63            endif
64        endif
65    config BSP_USING_ON_CHIP_FLASH
66        select RT_USING_FAL
67        bool "Enable on-chip FLASH"
68        default n
69    config BSP_USING_I2C
70        bool "Enable I2C"
71        select RT_USING_I2C
72        default n
73
74        if BSP_USING_I2C
75            config BSP_USING_I2C0
76                bool "Enable I2C0 bus [SCL P0.8; SDA P0.9]"
77                default y
78
79            config BSP_USING_I2C1
80                bool "Enable I2C1 bus [SCL P0.2; SDA P0.3]"
81                default n
82        endif
83
84     config BSP_USING_ONCHIP_RTC
85         bool "Enable RTC"
86         select RT_USING_RTC
87         default n
88
89endmenu
90
91
92endmenu
93
94
95