summaryrefslogtreecommitdiff
path: root/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/nucleo-f4x1re/src/stm32_spi.c')
-rw-r--r--nuttx/configs/nucleo-f4x1re/src/stm32_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c b/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c
index b08016903..70571dc93 100644
--- a/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c
+++ b/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c
@@ -42,6 +42,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <debug.h>
+#include <errno.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
@@ -110,8 +111,7 @@ void weak_function stm32_spiinitialize(void)
g_spi1 = up_spiinitialize(1);
if (!g_spi1)
{
- message("[boot] FAILED to initialize SPI port 1\n");
- return -ENODEV;
+ spidbg("[boot] FAILED to initialize SPI port 1\n");
}
#ifdef CONFIG_WL_CC3000