[riot-notifications] [RIOT-OS/RIOT] nrf52: Implement EasyDMA-based SPI peripheral implemenation (#14057)
notifications at github.com
Mon May 18 18:49:24 CEST 2020
@bergzand commented on this pull request.
> + dev(bus)->ENABLE = SPIM_ENABLE_ENABLE_Enabled;
+ return SPI_OK;
+void spi_release(spi_t bus)
+ /* power off everything */
+ dev(bus)->ENABLE = 0;
+static size_t _transfer(spi_t bus, const uint8_t *out_buf, uint8_t *in_buf,
+ size_t remaining_len)
+ uint8_t transfer_len = remaining_len > UINT8_MAX ? UINT8_MAX : remaining_len;
mainly because `transfer_len` is 0 when `remaining_len` is a multiple of 256
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications