Skip to content

Commit

Permalink
changed module config to IOLINKM and default selection of SPI and GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB authored May 3, 2024
1 parent 97e762e commit 4b2c8fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Victor Chavez
# SPDX-License-Identifier: GPL-3.0-or-later

if(CONFIG_IOLINK)
if(CONFIG_IOLINKM)
set(lib_name iolink_master)
set(OSAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/osal)
set(IOL_OSAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/iol_osal)
Expand Down
6 changes: 2 additions & 4 deletions samples/ifm_sample_app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ CONFIG_REQUIRES_FULL_LIBC=y

CONFIG_STD_CPP17=y
CONFIG_THREAD_NAME=y
CONFIG_IOLINK=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_LOG=y
CONFIG_IOLINK_LOG_LEVEL_DBG=y
CONFIG_IOLINKM=y
CONFIG_IOLINKM_LOG_LEVEL_DBG=y
CONFIG_ASSERT=y
CONFIG_IOLINK_PRIO=6
CONFIG_POSIX_API=y
6 changes: 3 additions & 3 deletions zephyr/KConfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (c) 2024 Victor Chavez
# SPDX-License-Identifier: GPL-3.0-or-later

config IOLINK
config CONFIG_IOLINKM
bool "IOLink Master"
default n
select EVENTS
select SPI
select GPIO
help
Enables the IOLink Master Module

Expand Down Expand Up @@ -80,6 +82,4 @@ config $(module)_LOG_LEVEL
default 3 if $(module)_LOG_LEVEL_INF
default 4 if $(module)_LOG_LEVEL_DBG
default LOG_DEFAULT_LEVEL if $(module)_LOG_LEVEL_DEFAULT


endif

0 comments on commit 4b2c8fb

Please sign in to comment.