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

benpicco notifications at github.com
Tue May 12 13:20:02 CEST 2020

@benpicco commented on this pull request.

> +static inline bool _in_ram(const uint8_t *data)
+    return ((uint32_t)data & RAM_MASK);
+ * @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,

    gpio_init_int(spi_config[bus].sclk, GPIO_OUT, GPIO_BOTH,
    (void) bus;

will save yourself even more ifdefs

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/093a7348/attachment.htm>

More information about the notifications mailing list