[riot-notifications] [RIOT-OS/RIOT] nrf52: Implement EasyDMA-based SPI peripheral implemenation (#14057)

benpicco notifications at github.com
Tue May 12 13:22:04 CEST 2020


@benpicco commented on this pull request.



> +static inline bool _in_ram(const uint8_t *data)
+{
+    return ((uint32_t)data & RAM_MASK);
+}
+
+#ifdef ERRATA_SPI_SINGLE_BYTE_WORKAROUND
+/**
+ * @brief Work-around for transmitting 1 byte with SPIM on the nrf52832.
+ * @warning Must not be used when transmitting multiple bytes.
+ * @warning After this workaround is used, the user must reset the PPI channel and the GPIOTE channel before attempting to transmit multiple bytes.
+ *
+ * @param bus   The SPI instance that is in use.
+ */
+static void _setup_workaround_for_ftpan_58(spi_t bus)
+{
+    gpio_init_int(spi_config[bus].sclk, GPIO_OUT, GPIO_BOTH,

Ah this is already in an ifdef block

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14057#discussion_r423656925
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/c8a58c80/attachment.htm>


More information about the notifications mailing list