[riot-notifications] [RIOT-OS/RIOT] cpu/sam0_common: implement QSPI peripheral, add support to mtd_spi_nor (#15300)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications