Closed xmos-jmccarthy closed 2 years ago
This driver enables high priority and fast mode via the status register, on the core that it ends up executing on. It may be desired by the application that the same core that performed a spi transaction have either of these set.
SPI https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/spi/src/spi_master.c#L13 https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/spi/src/spi_master.c#L206
QSPI https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/qspi_io/api/qspi_io.h#L357 https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/qspi_io/api/qspi_io.h#L357
Desired behavior should have the driver store the starting state of the status register, and restore it.
Also, see #27
This driver enables high priority and fast mode via the status register, on the core that it ends up executing on. It may be desired by the application that the same core that performed a spi transaction have either of these set.
SPI https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/spi/src/spi_master.c#L13 https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/spi/src/spi_master.c#L206
QSPI https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/qspi_io/api/qspi_io.h#L357 https://github.com/xmos/fwk_io/blob/290c3ec127af4a4cdfdea482d168c16a5b6f4bc7/modules/qspi_io/api/qspi_io.h#L357
Desired behavior should have the driver store the starting state of the status register, and restore it.