|
| 1 | +# Copyright (c) 2021 ATL-Electronics |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +config ZEPHYR_HAL_GIGADEVICE_MODULE |
| 5 | + bool |
| 6 | + |
| 7 | +config HAS_GD32_HAL |
| 8 | + bool |
| 9 | + |
| 10 | +if HAS_GD32_HAL |
| 11 | + |
| 12 | +config USE_GD32_ADC |
| 13 | + bool |
| 14 | + help |
| 15 | + Enable GD32 Analog-to-Digital Converter (ADC) HAL module driver |
| 16 | + |
| 17 | +config USE_GD32_BKP |
| 18 | + bool |
| 19 | + help |
| 20 | + Enable GD32 Backup Registers (BKP) HAL module driver |
| 21 | + |
| 22 | +config USE_GD32_CAN |
| 23 | + bool |
| 24 | + help |
| 25 | + Enable GD32 Controller Area Network (CAN) HAL module driver |
| 26 | + |
| 27 | +config USE_GD32_CMP |
| 28 | + bool |
| 29 | + help |
| 30 | + Enable GD32 Comparator (CMP) HAL module driver |
| 31 | + |
| 32 | +config USE_GD32_CRC |
| 33 | + bool |
| 34 | + help |
| 35 | + Enable GD32 Cyclic redundancy check calculation unit (CRC) HAL |
| 36 | + module driver |
| 37 | + |
| 38 | +config USE_GD32_CTC |
| 39 | + bool |
| 40 | + help |
| 41 | + Enable GD32 Clock Trim Controller (CTC) HAL module driver |
| 42 | + |
| 43 | +config USE_GD32_DAC |
| 44 | + bool |
| 45 | + help |
| 46 | + Enable GD32 Digital-to-Analog Converter (DAC) HAL module driver |
| 47 | + |
| 48 | +config USE_GD32_DBG |
| 49 | + bool |
| 50 | + help |
| 51 | + Enable GD32 Debug (DBG) HAL module driver |
| 52 | + |
| 53 | +config USE_GD32_DMA |
| 54 | + bool |
| 55 | + help |
| 56 | + Enable GD32 Direct Memory Access controller (DMA) HAL module driver |
| 57 | + |
| 58 | +config USE_GD32_ECLIC |
| 59 | + bool |
| 60 | + help |
| 61 | + Enable GD32 Enhancement Core-Local Interrupt Controller (ECLIC) HAL |
| 62 | + module driver |
| 63 | + |
| 64 | +config USE_GD32_ENET |
| 65 | + bool |
| 66 | + help |
| 67 | + Enable GD32 Ethernet (ENET) HAL module driver |
| 68 | + |
| 69 | +config USE_GD32_EXMC |
| 70 | + bool |
| 71 | + help |
| 72 | + Enable GD32 External Memory Controller (EXMC) HAL module driver |
| 73 | + |
| 74 | +config USE_GD32_EXTI |
| 75 | + bool |
| 76 | + help |
| 77 | + Enable GD32 Interrupt/Event controller (EXTI) HAL module driver |
| 78 | + |
| 79 | +config USE_GD32_FMC |
| 80 | + bool |
| 81 | + help |
| 82 | + Enable GD32 Flash Memory Controller (FMC) HAL module driver |
| 83 | + |
| 84 | +config USE_GD32_FWDGT |
| 85 | + bool |
| 86 | + help |
| 87 | + Enable GD32 Free Watchdog Timer (FWDGT) HAL module driver |
| 88 | + |
| 89 | +config USE_GD32_GPIO |
| 90 | + bool |
| 91 | + default y |
| 92 | + help |
| 93 | + Enable GD32 General-purpose and Alternate-Function I/Os |
| 94 | + (GPIO and AFIO) HAL module driver |
| 95 | + |
| 96 | +config USE_GD32_I2C |
| 97 | + bool |
| 98 | + help |
| 99 | + Enable GD32 Inter-Integrated Circuit Interface (I2C) HAL module driver |
| 100 | + |
| 101 | +config USE_GD32_MISC |
| 102 | + bool |
| 103 | + help |
| 104 | + Enable GD32 System Utilities (MISC) HAL module driver |
| 105 | + |
| 106 | +config USE_GD32_PMU |
| 107 | + bool |
| 108 | + help |
| 109 | + Enable GD32 Power Management Unit (PMU) HAL module driver |
| 110 | + |
| 111 | +config USE_GD32_RCU |
| 112 | + bool |
| 113 | + default y |
| 114 | + help |
| 115 | + Enable GD32 Reset and Clock Unit (RCU) HAL module driver |
| 116 | + |
| 117 | +config USE_GD32_RTC |
| 118 | + bool |
| 119 | + help |
| 120 | + Enable GD32 Real-Time Clock (RTC) HAL module driver |
| 121 | + |
| 122 | +config USE_GD32_SDIO |
| 123 | + bool |
| 124 | + help |
| 125 | + Enable GD32 Secure Digital Input/Output interface (SDIO) HAL module |
| 126 | + driver |
| 127 | + |
| 128 | +config USE_GD32_SPI |
| 129 | + bool |
| 130 | + help |
| 131 | + Enable GD32 Serial Peripheral Interface(SPI) HAL module driver |
| 132 | + |
| 133 | +config USE_GD32_SQPI |
| 134 | + bool |
| 135 | + help |
| 136 | + Enable GD32 Serial/Quad Parallel Interface (SQPI) HAL module driver |
| 137 | + |
| 138 | +config USE_GD32_SHRTIMER |
| 139 | + bool |
| 140 | + help |
| 141 | + Enable GD32 Super High-Resolution Timer (SHRTIMER) HAL module driver |
| 142 | + |
| 143 | +config USE_GD32_TIMER |
| 144 | + bool |
| 145 | + help |
| 146 | + Enable GD32 Timer (TIMER) HAL module driver |
| 147 | + |
| 148 | +config USE_GD32_TMU |
| 149 | + bool |
| 150 | + help |
| 151 | + Enable GD32 Trigonometric Math Unit (TMU) HAL module driver |
| 152 | + |
| 153 | +config USE_GD32_USART |
| 154 | + bool |
| 155 | + help |
| 156 | + Enable GD32 Universal Synchronous/Asynchronous Receiver/Transmitter |
| 157 | + (USART) HAL module driver |
| 158 | + |
| 159 | +config USE_GD32_USBD |
| 160 | + bool |
| 161 | + help |
| 162 | + Enable GD32 Universal Serial Bus full-speed Device interface (USBD) |
| 163 | + HAL module driver |
| 164 | + |
| 165 | +config USE_GD32_USBFS |
| 166 | + bool |
| 167 | + help |
| 168 | + Enable GD32 Universal Serial Bus on-the-go Full-Speed (USBFS) HAL |
| 169 | + module driver |
| 170 | + |
| 171 | +config USE_GD32_USBHS |
| 172 | + bool |
| 173 | + help |
| 174 | + Enable GD32 Universal Serial Bus High-Speed interface (USBHS) HAL |
| 175 | + module driver |
| 176 | + |
| 177 | +config USE_GD32_WWDGT |
| 178 | + bool |
| 179 | + help |
| 180 | + Enable GD32 Window Watchdog Timer (WWDGT) HAL module driver |
| 181 | + |
| 182 | +endif # HAS_GD32_HAL |
0 commit comments