This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial merge of Common IO libraries and tests (#1551)
- Loading branch information
qiutongs
authored
Nov 27, 2019
1 parent
70b046f
commit 3367c26
Showing
25 changed files
with
9,284 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
afr_module(INTERFACE) | ||
|
||
set(inc_dir "${CMAKE_CURRENT_LIST_DIR}/include") | ||
set(test_dir "${CMAKE_CURRENT_LIST_DIR}/test") | ||
|
||
afr_module_sources( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE | ||
"${inc_dir}/iot_i2c.h" | ||
"${inc_dir}/iot_uart.h" | ||
"${inc_dir}/iot_spi.h" | ||
) | ||
|
||
afr_module_include_dirs( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE "${inc_dir}" | ||
) | ||
|
||
afr_module_dependencies( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE AFR::common_io::mcu_port | ||
) | ||
|
||
# Common I/O tests | ||
afr_test_module() | ||
afr_module_sources( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE | ||
"${test_dir}/iot_test_common_io.c" | ||
"${test_dir}/test_iot_i2c.c" | ||
"${test_dir}/test_iot_uart.c" | ||
"${test_dir}/test_iot_spi.c" | ||
) | ||
|
||
afr_module_include_dirs( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE "${test_dir}" | ||
) | ||
|
||
afr_module_dependencies( | ||
${AFR_CURRENT_MODULE} | ||
INTERFACE AFR::common_io | ||
) |
Oops, something went wrong.