RTEMS | bsps/xilinx-zynq: Add QSPI flash driver (!295)
Aaron Nyholm (@eagleirony)
gitlab at rtems.org
Fri Nov 8 01:40:23 UTC 2024
Aaron Nyholm commented on a discussion on bsps/arm/xilinx-zynq/dev/spi/zynq-qspi-flash-transfer.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/295#note_114546
> +#include <rtems.h>
> +#include <stdint.h>
> +
> +#include <dev/spi/zynq-qspi-flash-defs.h>
> +
> +/*
> + * The following variables are shared between non-interrupt processing and
> + * interrupt processing such that they must be global.
> + */
> +rtems_id transfer_task;
> +
> +__attribute__((weak)) void zqspi_write_unlock(zqspiflash *driver) {
> +}
> +
> +__attribute__((weak)) void zqspi_write_lock(zqspiflash *driver) {
> +}
They're used in `zynq-qspi-flash.c`. They're there to allow apps to run some code before and after a flash write in the case of the flash chip having the WriteEnable pin tied to a GPIO pin.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/295#note_114546
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241108/4f4adad9/attachment-0001.htm>
More information about the bugs
mailing list