Fixed small problem in SPI mode.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12407 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
375272e237
commit
a250f19c64
|
@ -172,7 +172,7 @@ static flash_error_t mx25_poll_status(SNORDriver *devp) {
|
|||
#endif
|
||||
/* Read status command.*/
|
||||
#if MX25_BUS_MODE == MX25_BUS_MODE_SPI
|
||||
bus_cmd_receive(devp->config->busp, MX25_CMD_SPI_RDSR, 1U, &sts);
|
||||
bus_cmd_receive(devp->config->busp, MX25_CMD_SPI_RDSR, 1U, sts);
|
||||
#else
|
||||
bus_cmd_addr_dummy_receive(devp->config->busp, MX25_CMD_OPI_RDSR,
|
||||
0U, 4U, 2U, sts); /*Note: always 4 dummies.*/
|
||||
|
@ -181,7 +181,7 @@ static flash_error_t mx25_poll_status(SNORDriver *devp) {
|
|||
|
||||
/* Reading security register and checking for errors.*/
|
||||
#if MX25_BUS_MODE == MX25_BUS_MODE_SPI
|
||||
bus_cmd_receive(devp->config->busp, MX25_CMD_SPI_RDSCUR, 1U, &sts);
|
||||
bus_cmd_receive(devp->config->busp, MX25_CMD_SPI_RDSCUR, 1U, sec);
|
||||
#else
|
||||
bus_cmd_addr_dummy_receive(devp->config->busp, MX25_CMD_OPI_RDSCUR,
|
||||
0U, 4U, 2U, sec); /*Note: always 4 dummies.*/
|
||||
|
|
|
@ -113,7 +113,7 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
|
|||
# Other files (optional).
|
||||
include $(CHIBIOS)/test/lib/test.mk
|
||||
include $(CHIBIOS)/test/mfs/mfs_test.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/serial_nor/devices/micron_n25q/hal_flash_device.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/serial_nor/devices/macronix_mx25/hal_flash_device.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.mk
|
||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||
|
||||
|
|
Loading…
Reference in New Issue