analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 75 forks source link

feat(Other): Enable building zephyr for risc-v targets #1051

Open MaureenHelm opened 1 week ago

MaureenHelm commented 1 week ago

Configures the zephyr build system to use the appropriate cmsis system startup and peripheral driver sources based on the target core architecture. The mxc lock driver is not implemented for risc-v and emits a build warning (which twister promotes to an error), therefore the zephyr build system is configured to build it only for arm.

Before this patch, we could only build zephyr for arm targets, but now we can build zephyr for arm or risc-v targets.

Checklist Before Requesting Review

MaureenHelm commented 1 day ago

@Jake-Carter can you take a look?

Jake-Carter commented 1 day ago

On RISC-V MXC_Lock implementation - we've had this in the TODO for a while. Let me know if we need to bump this up in priority.