Hey all
trying to understand how to add in drivers from zephyr into my project. an example like adding the w5500 module would that ential something like this ?
-1) copy contents of kconfig file into source kconfig (file: Kconfig.w5500 into -> prj.conf
-2) from cmakelists.txt in the ethernet directory
-- add zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/l2)
-- add zephyr_sources_ifdef(CONFIG_ETH_W5500 eth_w5500.c)
-- add
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
if(CONFIG_ETH_NATIVE_POSIX)
zephyr_library()
zephyr_library_compile_definitions(
NO_POSIX_CHEATS
_BSD_SOURCE
_DEFAULT_SOURCE
)
zephyr_library_sources(
eth_native_posix.c
eth_native_posix_adapt.c
)
endif()
and then reload and enable it in menuconfig ?
Just want some confirmation before i start tinkering.
tried searching on the forum for a similiar question but i didnt see any results with "zephyr & drivers"
if these a page on https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/index.html that i've missed please pop that through as i've missed it
Thankyou !!