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
This commit is contained in:
parent
8c05e06046
commit
0dae05bda4
@ -42,6 +42,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include <nuttx/spi/spi.h>
|
#include <nuttx/spi/spi.h>
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
@ -110,8 +111,7 @@ void weak_function stm32_spiinitialize(void)
|
|||||||
g_spi1 = up_spiinitialize(1);
|
g_spi1 = up_spiinitialize(1);
|
||||||
if (!g_spi1)
|
if (!g_spi1)
|
||||||
{
|
{
|
||||||
message("[boot] FAILED to initialize SPI port 1\n");
|
spidbg("[boot] FAILED to initialize SPI port 1\n");
|
||||||
return -ENODEV;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_WL_CC3000
|
#ifdef CONFIG_WL_CC3000
|
||||||
|
Loading…
Reference in New Issue
Block a user