summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-24 11:29:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-24 11:29:22 -0600
commita80121096e6c86072be64ed5d37f342f0330aaf1 (patch)
tree56aae5e8f2765ca074fa93b6c55ae3163af313c9
parentf765b659e949f61b713e2b34487c65c94c65386a (diff)
downloadnuttx-a80121096e6c86072be64ed5d37f342f0330aaf1.tar.gz
nuttx-a80121096e6c86072be64ed5d37f342f0330aaf1.tar.bz2
nuttx-a80121096e6c86072be64ed5d37f342f0330aaf1.zip
Nucleo F4x1RE: Typos in previously untested code. message() does not exist, return value from void function, missing inclusion of errno.h. From Sébastien Lorquet
-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