1# SPDX-License-Identifier: Apache-2.0 2 3if(CONFIG_CANOPENNODE) 4 5 set(CANOPENNODE_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) 6 7 zephyr_library() 8 9 zephyr_include_directories( 10 ${CANOPENNODE_DIR} 11 ${CANOPENNODE_DIR}/stack 12 . 13 ) 14 15 zephyr_library_sources( 16 ${CANOPENNODE_DIR}/CANopen.c 17 ${CANOPENNODE_DIR}/stack/CO_Emergency.c 18 ${CANOPENNODE_DIR}/stack/CO_HBconsumer.c 19 ${CANOPENNODE_DIR}/stack/CO_LSSmaster.c 20 ${CANOPENNODE_DIR}/stack/CO_LSSslave.c 21 ${CANOPENNODE_DIR}/stack/CO_NMT_Heartbeat.c 22 ${CANOPENNODE_DIR}/stack/CO_PDO.c 23 ${CANOPENNODE_DIR}/stack/CO_SDO.c 24 ${CANOPENNODE_DIR}/stack/CO_SDOmaster.c 25 ${CANOPENNODE_DIR}/stack/CO_SYNC.c 26 ${CANOPENNODE_DIR}/stack/CO_TIME.c 27 ${CANOPENNODE_DIR}/stack/CO_trace.c 28 CO_driver.c 29 ) 30 31 zephyr_library_sources_ifdef(CONFIG_CANOPENNODE_SYNC_THREAD canopen_sync.c) 32 zephyr_library_sources_ifdef(CONFIG_CANOPENNODE_STORAGE canopen_storage.c) 33 zephyr_library_sources_ifdef(CONFIG_CANOPENNODE_LEDS canopen_leds.c) 34 zephyr_library_sources_ifdef(CONFIG_CANOPENNODE_PROGRAM_DOWNLOAD canopen_program.c) 35 36endif() 37