I have used the Longan module with Zephyr on nrf52840. I connected it to a Serial, then modified the Longan library to compile and work under Zephyr.
This isn’t everything you need (missing the .h includes, and the uart1_xx functions) but should get you started.
From: users@... <users@...> On Behalf Of s9gosich@...
Sent: Wednesday, August 12, 2020 11:52 AM
Subject: [Zephyr-users] How to use "Serial CAN Bus Module" #can #driver #uart
I’m new to zephyr and need some help.
I have a nrf52dk board and want to use this (
https://www.longan-labs.cc/1030001.html ) serial to CAN device. I was able to test this with an Arduino and this library (
https://github.com/Longan-Labs/Serial_CAN_Arduino ). Now, I’m a
bit lost how to use it with Zephyr.
Note: lists.zephyrproject.org will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.