Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Initial merge of Common IO libraries and tests (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiutongs authored Nov 27, 2019
1 parent 70b046f commit 3367c26
Show file tree
Hide file tree
Showing 25 changed files with 9,284 additions and 0 deletions.
43 changes: 43 additions & 0 deletions libraries/abstractions/common_io/CMakeLists.txt
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
)
Loading

0 comments on commit 3367c26

Please sign in to comment.