You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/18 17:45:55 UTC
[incubator-nuttx] branch master updated: boards/mpfs: Fix the icicle build break
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ea0aadf boards/mpfs: Fix the icicle build break
ea0aadf is described below
commit ea0aadff1e87300f658b8832a73a390d39e520c0
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Nov 19 00:08:43 2021 +0800
boards/mpfs: Fix the icicle build break
src/mpfs_emmcsd.c: In function 'mpfs_board_emmcsd_init':
Error: src/mpfs_emmcsd.c:72:40: error: 'SDIO_SLOTNO' undeclared (first use in this function)
finfo("Initializing SDIO slot %d\n", SDIO_SLOTNO);
^~~~~~~~~~~
src/mpfs_emmcsd.c:72:40: note: each undeclared identifier is reported only once for each function it appears in
Error: src/mpfs_emmcsd.c:83:55: error: 'SDIO_MINOR' undeclared (first use in this function); did you mean 'SHRT_MIN'?
finfo("Bind SDIO to the MMC/SD driver, minor=%d\n", SDIO_MINOR);
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
boards/risc-v/mpfs/icicle/src/board_config.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/boards/risc-v/mpfs/icicle/src/board_config.h b/boards/risc-v/mpfs/icicle/src/board_config.h
index 346d0f4..217e367 100755
--- a/boards/risc-v/mpfs/icicle/src/board_config.h
+++ b/boards/risc-v/mpfs/icicle/src/board_config.h
@@ -27,6 +27,9 @@
#include <nuttx/config.h>
+#define SDIO_SLOTNO 0
+#define SDIO_MINOR 0
+
#define ICICLE_GPIO_LED1 (GPIO_BANK2 | GPIO_PIN19 | GPIO_OUTPUT)
#define ICICLE_GPIO_LED2 (GPIO_BANK2 | GPIO_PIN18 | GPIO_OUTPUT)
#define ICICLE_GPIO_LED3 (GPIO_BANK2 | GPIO_PIN17 | GPIO_OUTPUT)