[riot-notifications] [RIOT-OS/RIOT] cpu/sam0_common: implement QSPI peripheral, add support to mtd_spi_nor (#15300)

benpicco notifications at github.com
Sat Jan 30 22:07:50 CET 2021


@benpicco commented on this pull request.



> + *
+ * @param[in] bus       QSPI device to initialize
+ */
+void qspi_init(qspi_t bus);
+
+/**
+ * @brief   Configure the QSPI peripheral settings
+ *
+ * @pre     The @p bus has been acquired with @ref qspi_acquire
+ *
+ * @param[in] bus       QSPI device to configure
+ * @param[in] mode      QSPI mode @see qspi_mode_t
+ * @param[in] flags     QSPI Configuration Options
+ * @param[in] clk_hz    QSPI frequency in Hz
+ */
+void qspi_configure(qspi_t bus, qspi_mode_t mode, uint32_t flags, uint32_t clk_hz);

SAM D5x/E5x has that too, but the memory region where this is mapped to is fixed.
I have a [branch](https://github.com/benpicco/RIOT/tree/cpu/same54-qspi-xip) where I implemented `qspi_xip_mount()` - haven't pushed that yet because I couldn't get the flash chip out of XIP mode without doing a power reset.

I assumed that in this mode you can only read, not write to the flash.

-- 
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/15300#discussion_r567319344
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210130/c7e31e47/attachment-0001.htm>


More information about the notifications mailing list