zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

Update SPI module to use new Zephyr SPI API

Open jimmy-huang opened this issue 7 years ago • 3 comments

The current zephyr SPI api used in the SPI module is the legacy api, and we should switch to the new SPI api, as the new API address some of the issues like ZEP-1725, where the frequency invalidly set max_sys_feq as a clock divider number like on the Arduino 101.

jimmy-huang avatar Aug 10 '17 22:08 jimmy-huang

This is because currently the Arduino 101 SPI driver uses the legacy SPI, not the new one. I already ported this code to use the new API, but it won't work until the driver gets updated. But when that happens, should be a quick easy update.

brianjjones avatar Aug 22 '17 17:08 brianjjones

@brianjjones, @jimmy-huang what's the status of this?

grgustaf avatar Feb 05 '18 17:02 grgustaf

@grgustaf The SPI driver for the A101 and FRDM_K64F are both still using the Legacy API, possibly the same for other boards. So until these drivers are updated, there's no way for us to update the SPI API without breaking the build for several of our key boards. Perhaps we should ping someone on the Zephyr team about driver plans.

brianjjones avatar Feb 05 '18 19:02 brianjjones