1# Copy variable into project config.cmake to use software component
2#set.board.frdmke02z40m
3#  # description: Board_project_template frdmke02z40m
4#  set(CONFIG_USE_BOARD_Project_Template_frdmke02z40m true)
5
6#set.device.MKE02Z4
7#  # description: Middleware baremetal
8#  set(CONFIG_USE_middleware_baremetal true)
9
10#  # description: Utilities which is needed for particular toolchain like the SBRK function required to address limitation between HEAP and STACK in GCC toolchain library.
11#  set(CONFIG_USE_utilities_misc_utilities true)
12
13#  # description: Devices_project_template MKE02Z4
14#  set(CONFIG_USE_DEVICES_Project_Template_MKE02Z4 true)
15
16#  # description: Device MKE02Z4_startup
17#  set(CONFIG_USE_device_MKE02Z4_startup true)
18
19#  # description: Device MKE02Z4_cmsis
20#  set(CONFIG_USE_device_MKE02Z4_CMSIS true)
21
22#  # description: Rte_device
23#  set(CONFIG_USE_RTE_Device true)
24
25#  # description: Clock Driver
26#  set(CONFIG_USE_driver_clock true)
27
28#  # description: Component serial_manager_uart
29#  set(CONFIG_USE_component_serial_manager_uart true)
30
31#  # description: Utility debug_console_lite
32#  set(CONFIG_USE_utility_debug_console_lite true)
33
34#  # description: Utility notifier
35#  set(CONFIG_USE_utility_notifier true)
36
37#  # description: PORT Driver
38#  set(CONFIG_USE_driver_port_ke02 true)
39
40#  # description: Device MKE02Z4_system
41#  set(CONFIG_USE_device_MKE02Z4_system true)
42
43#  # description: Utility assert
44#  set(CONFIG_USE_utility_assert true)
45
46#  # description: Utility assert_lite
47#  set(CONFIG_USE_utility_assert_lite true)
48
49#  # description: Utility str
50#  set(CONFIG_USE_utility_str true)
51
52#  # description: Utility debug_console
53#  set(CONFIG_USE_utility_debug_console true)
54
55#  # description: I2C CMSIS Driver
56#  set(CONFIG_USE_driver_cmsis_i2c true)
57
58#  # description: SPI CMSIS Driver
59#  set(CONFIG_USE_driver_cmsis_spi true)
60
61#  # description: UART CMSIS Driver
62#  set(CONFIG_USE_driver_cmsis_uart true)
63
64#  # description: Component software_crc_adapter
65#  set(CONFIG_USE_component_software_crc_adapter true)
66
67#  # description: Component eeprom_at25fxxxx
68#  set(CONFIG_USE_component_eeprom_AT25Fxxxx true)
69
70#  # description: Component i2c_adapter
71#  set(CONFIG_USE_component_i2c_adapter true)
72
73#  # description: Component lists
74#  set(CONFIG_USE_component_lists true)
75
76#  # description: Component log
77#  set(CONFIG_USE_component_log true)
78
79#  # description: Component log backend debug console
80#  set(CONFIG_USE_component_log_backend_debugconsole true)
81
82#  # description: Component log backend debug console lite
83#  set(CONFIG_USE_component_log_backend_debugconsole_lite true)
84
85#  # description: Component log backend ring buffer
86#  set(CONFIG_USE_component_log_backend_ringbuffer true)
87
88#  # description: Component mem_manager
89#  set(CONFIG_USE_component_mem_manager true)
90
91#  # description: Component mem_manager_light
92#  set(CONFIG_USE_component_mem_manager_light true)
93
94#  # description: Component panic
95#  set(CONFIG_USE_component_panic true)
96
97#  # description: Component pwm_ftm_adapter
98#  set(CONFIG_USE_component_pwm_ftm_adapter true)
99
100#  # description: Component pwm_tpm_adapter
101#  set(CONFIG_USE_component_pwm_tpm_adapter true)
102
103#  # description: Component reset_adapter
104#  set(CONFIG_USE_component_reset_adapter true)
105
106#  # description: Component software_rng_adapter
107#  set(CONFIG_USE_component_software_rng_adapter true)
108
109#  # description: Component serial_manager
110#  set(CONFIG_USE_component_serial_manager true)
111
112#  # description: Component serial_manager_spi
113#  set(CONFIG_USE_component_serial_manager_spi true)
114
115#  # description: Component serial_manager_virtual
116#  set(CONFIG_USE_component_serial_manager_virtual true)
117
118#  # description: Utility shell
119#  set(CONFIG_USE_utility_shell true)
120
121#  # description: Component spi_adapter
122#  set(CONFIG_USE_component_spi_adapter true)
123
124#  # description: Component ftm_adapter
125#  set(CONFIG_USE_component_ftm_adapter true)
126
127#  # description: Component pit_adapter
128#  set(CONFIG_USE_component_pit_adapter true)
129
130#  # description: Component tpm_adapter
131#  set(CONFIG_USE_component_tpm_adapter true)
132
133#  # description: Component timer_manager
134#  set(CONFIG_USE_component_timer_manager true)
135
136#  # description: Component uart_adapter
137#  set(CONFIG_USE_component_uart_adapter true)
138
139#  # description: COMMON Driver
140#  set(CONFIG_USE_driver_common true)
141
142#  # description: ACMP Driver
143#  set(CONFIG_USE_driver_acmp_1 true)
144
145#  # description: ADC12 Driver
146#  set(CONFIG_USE_driver_adc_5v12b_ll18_015 true)
147
148#  # description: Flash Driver
149#  set(CONFIG_USE_driver_flash_ftmr true)
150
151#  # description: FTM Driver
152#  set(CONFIG_USE_driver_ftm true)
153
154#  # description: GPIO Driver
155#  set(CONFIG_USE_driver_gpio_1 true)
156
157#  # description: I2C Driver
158#  set(CONFIG_USE_driver_i2c true)
159
160#  # description: IRQ Driver
161#  set(CONFIG_USE_driver_irq true)
162
163#  # description: KBI Driver
164#  set(CONFIG_USE_driver_kbi true)
165
166#  # description: PIT Driver
167#  set(CONFIG_USE_driver_pit true)
168
169#  # description: RTC Driver
170#  set(CONFIG_USE_driver_rtc_1 true)
171
172#  # description: SPI Driver
173#  set(CONFIG_USE_driver_spi true)
174
175#  # description: TPM Driver
176#  set(CONFIG_USE_driver_tpm true)
177
178#  # description: UART Driver
179#  set(CONFIG_USE_driver_uart true)
180
181#  # description: WDOG Driver
182#  set(CONFIG_USE_driver_wdog8 true)
183
184#set.CMSIS
185#  # description: CMSIS-CORE for Cortex-M, ARMv8-M, ARMv8.1-M
186#  set(CONFIG_USE_CMSIS_Include_core_cm true)
187
188#  # description: Access to #include Driver_USART.h file for custom implementation
189#  set(CONFIG_USE_CMSIS_Driver_Include_USART true)
190
191#  # description: Access to #include Driver_CAN.h file for custom implementation
192#  set(CONFIG_USE_CMSIS_Driver_Include_CAN true)
193
194#  # description: Access to #include Driver_ETH.h file for custom implementation
195#  set(CONFIG_USE_CMSIS_Driver_Include_Ethernet true)
196
197#  # description: Access to #include Driver_ETH_MAC.h file for custom implementation
198#  set(CONFIG_USE_CMSIS_Driver_Include_Ethernet_MAC true)
199
200#  # description: Access to #include Driver_ETH_PHY.h file for custom implementation
201#  set(CONFIG_USE_CMSIS_Driver_Include_Ethernet_PHY true)
202
203#  # description: Access to #include Driver_Flash.h file for custom implementation
204#  set(CONFIG_USE_CMSIS_Driver_Include_Flash true)
205
206#  # description: Access to #include Driver_I2C.h file for custom implementation
207#  set(CONFIG_USE_CMSIS_Driver_Include_I2C true)
208
209#  # description: Access to #include Driver_MCI.h file for custom implementation
210#  set(CONFIG_USE_CMSIS_Driver_Include_MCI true)
211
212#  # description: Access to #include Driver_NAND.h file for custom implementation
213#  set(CONFIG_USE_CMSIS_Driver_Include_NAND true)
214
215#  # description: Access to #include Driver_SAI.h file for custom implementation
216#  set(CONFIG_USE_CMSIS_Driver_Include_SAI true)
217
218#  # description: Access to #include Driver_SPI.h file for custom implementation
219#  set(CONFIG_USE_CMSIS_Driver_Include_SPI true)
220
221#  # description: Access to #include Driver_USBD.h file for custom implementation
222#  set(CONFIG_USE_CMSIS_Driver_Include_USB_Device true)
223
224#  # description: Access to #include Driver_USBH.h file for custom implementation
225#  set(CONFIG_USE_CMSIS_Driver_Include_USB_Host true)
226
227#  # description: Access to #include Driver_WiFi.h file
228#  set(CONFIG_USE_CMSIS_Driver_Include_WiFi true)
229
230#  # description: Device interrupt controller interface
231#  set(CONFIG_USE_CMSIS_Device_API_OSTick true)
232
233#  # description: CMSIS-RTOS API for Cortex-M, SC000, and SC300
234#  set(CONFIG_USE_CMSIS_Device_API_RTOS2 true)
235
236#  # description: CMSIS-RTOS2 RTX5 for Cortex-M, SC000, C300 and Armv8-M (Library)
237#  set(CONFIG_USE_CMSIS_RTOS2_Secure true)
238
239#  # description: CMSIS-RTOS2 RTX5 for Armv8-M Non-Secure Domain (Library)
240#  set(CONFIG_USE_CMSIS_RTOS2_NonSecure true)
241
242#set.CMSIS_DSP_Lib
243#  # description: CMSIS-DSP Library Header
244#  set(CONFIG_USE_CMSIS_DSP_Include true)
245
246#  # description: CMSIS-DSP Library
247#  set(CONFIG_USE_CMSIS_DSP_Source true)
248
249#  # description: CMSIS-NN Library
250#  set(CONFIG_USE_CMSIS_NN_Source true)
251
252#set.component.osa
253#  # description: Component osa_zephyr
254#  set(CONFIG_USE_component_osa_zephyr true)
255
256#  # description: Component common_task
257#  set(CONFIG_USE_component_common_task true)
258
259#  # description: Component osa_bm
260#  set(CONFIG_USE_component_osa_bm true)
261
262#  # description: Component osa
263#  set(CONFIG_USE_component_osa true)
264
265#  # description: Component osa interface
266#  set(CONFIG_USE_component_osa_interface true)
267
268list(APPEND CMAKE_MODULE_PATH
269  ${CMAKE_CURRENT_LIST_DIR}/.
270  ${CMAKE_CURRENT_LIST_DIR}/../../components/osa
271  ${CMAKE_CURRENT_LIST_DIR}/drivers
272  ${CMAKE_CURRENT_LIST_DIR}/project_template
273  ${CMAKE_CURRENT_LIST_DIR}/template
274  ${CMAKE_CURRENT_LIST_DIR}/../../CMSIS
275  ${CMAKE_CURRENT_LIST_DIR}/../../boards/frdmke02z40m
276)
277
278include(set_board_frdmke02z40m OPTIONAL)
279include(set_CMSIS_DSP_Lib OPTIONAL)
280include(set_CMSIS OPTIONAL)
281include(set_device_MKE02Z4 OPTIONAL)
282include(set_component_osa OPTIONAL)
283