aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2016-08-18 11:25:08 +0300
committerbarthess <barthess@yandex.ru>2016-08-18 11:25:08 +0300
commit80b50d393583a60cecd14cbd49884983d4fb5cbb (patch)
tree60d38f97a15d8b4f7b0fa24be0d12818a2064434 /os/hal/ports
parente1601e0a7d9b805422e511ea1c29ef9f5ca6000b (diff)
downloadChibiOS-Contrib-80b50d393583a60cecd14cbd49884983d4fb5cbb.tar.gz
ChibiOS-Contrib-80b50d393583a60cecd14cbd49884983d4fb5cbb.tar.bz2
ChibiOS-Contrib-80b50d393583a60cecd14cbd49884983d4fb5cbb.zip
[STM32 NAND] Code cleanup.
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/LLD/FSMCv1/hal_nand_lld.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_nand_lld.c b/os/hal/ports/STM32/LLD/FSMCv1/hal_nand_lld.c
index e04dff6..771723e 100644
--- a/os/hal/ports/STM32/LLD/FSMCv1/hal_nand_lld.c
+++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_nand_lld.c
@@ -493,12 +493,13 @@ void nand_lld_write_cmd(NANDDriver *nandp, uint8_t cmd) {
*/
uint8_t nand_lld_read_status(NANDDriver *nandp) {
- uint8_t status[1] = {0x01}; /* presume worse */
+ uint8_t status;
+ status = 1; /* presume worse */
nand_lld_write_cmd(nandp, NAND_CMD_STATUS);
- nand_lld_polled_read_data(nandp, status, 1);
+ nand_lld_polled_read_data(nandp, &status, 1);
- return status[0];
+ return status;
}
#endif /* HAL_USE_NAND */