~aleteoryx/muditaos

ref: c1391090c67428aeaffcef5a7a71a6d2ed69ccc9 muditaos/module-bsp/board/rt1051/CMakeLists.txt -rw-r--r-- 2.0 KiB
c1391090 — Mateusz Piesta [BH-1389] Catch2 unit tests optimization 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md


target_sources(module-bsp
	PRIVATE
		bluetooth/BlueKitchen.cpp
		bluetooth/BluetoothCommon.cpp
		bsp/audio/CodecMAX98090.cpp
		bsp/audio/qfilter.c
		bsp/cellular/rt1051_cellular.cpp
		bsp/eeprom/eeprom.cpp
		bsp/eink_frontlight/eink_frontlight.cpp
		bsp/eink/bsp_eink.cpp
		bsp/eink/ED028TC1.cpp
		bsp/eink/eink_binarization_luts.c
		bsp/eMMC/fsl_mmc.c
		bsp/eMMC/fsl_sdmmc_common.c
		bsp/eMMC/fsl_sdmmc_event.c
		bsp/eMMC/fsl_sdmmc_host.c
		bsp/headset/headset.cpp
		bsp/keypad_backlight/keypad_backlight.cpp
		bsp/light_sensor/light_sensor.cpp
		bsp/lpm/ClockState.cpp
		bsp/lpm/CpuFreqLPM.cpp
		bsp/lpm/Oscillator.cpp
		bsp/lpm/RT1051LPM.cpp
		bsp/magnetometer/ALS31300.cpp
		bsp/pit/pit.cpp
		bsp/rtc/rtc.cpp
		bsp/torch/torch.cpp
		bsp/vibrator/vibrator.cpp
		bsp/watchdog/watchdog.cpp
		common/board.cpp
		common/chip.cpp
		common/startup_mimxrt1052.cpp
		common/system_MIMXRT1051.c
		drivers/RT1051DriverDMA.cpp
		drivers/RT1051DriverDMAMux.cpp
		drivers/RT1051DriverGPIO.cpp
		drivers/RT1051DriverI2C.cpp
		drivers/RT1051DriverLPSPI.cpp
		drivers/RT1051DriverLPUART.cpp
		drivers/RT1051DriverOscillator.cpp
		drivers/RT1051DriverPLL.cpp
		drivers/RT1051DriverPLL2.cpp
		drivers/RT1051DriverPWM.cpp
		drivers/RT1051DriverSEMC.cpp
		drivers/RT1051DriverUSDHC.cpp
   		bsp/magnetometer/magnetometer.cpp
)

target_include_directories(module-bsp
	PUBLIC
	$<BUILD_INTERFACE:
		${CMAKE_CURRENT_SOURCE_DIR}
		${CMAKE_CURRENT_SOURCE_DIR}/bsp
		${CMAKE_CURRENT_SOURCE_DIR}/common

		${CMAKE_SOURCE_DIR}/module-bluetooth/Bluetooth
		${CMAKE_SOURCE_DIR}/module-sys/
	>
)

set_source_files_properties(
	eMMC/fsl_mmc.c PROPERTIES COMPILE_FLAGS -Wno-unused-function
	common/i2c.c PROPERTIES COMPILE_FLAGS -Wno-unused-function
)

target_compile_definitions(module-bsp PUBLIC USB_STACK_FREERTOS)

add_subdirectory(common/fsl_drivers)
add_subdirectory(${BOARD})

target_link_libraries(module-bsp PUBLIC cmsis fsl)