[riot-notifications] [RIOT-OS/RIOT] cpu/sam0_common/spi: demux SPI output pins before entering deep sleep (#14105)

Juergen Fitschen notifications at github.com
Wed May 20 16:25:44 CEST 2020

@jue89 commented on this pull request.

> +        for (size_t i = 0; i < SPI_NUMOF; i++) {
+            spi_t bus = SPI_DEV(i);
+            gpio_init_mux(spi_config[bus].mosi_pin, spi_config[bus].mosi_mux);
+            gpio_init_mux(spi_config[bus].clk_pin, spi_config[bus].clk_mux);

Good idea. This bitmask may become useful, once `periph_spi_reconfigure` has been merged and `spi_deinit_pins()` gets called.

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/20200520/cbab1958/attachment-0001.htm>

More information about the notifications mailing list