From b2035ebb1c4b44c1fe80166fc98308be6fa118eb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 8 Dec 2019 08:24:02 -0600 Subject: [PATCH] boards/arm/imxrt/imxrt1020-evk/src/imxrt_autoleds.c: Must include imxrt1020-evk.h --- .../imxrt/imxrt1020-evk/src/imxrt_autoleds.c | 1 + .../imxrt/imxrt1020-evk/src/imxrt_bringup.c | 20 +++++++++++-------- .../imxrt/imxrt1020-evk/src/imxrt_userleds.c | 1 + 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_autoleds.c b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_autoleds.c index d7f597dbc5..3d5fb7bb28 100644 --- a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_autoleds.c +++ b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_autoleds.c @@ -61,6 +61,7 @@ #include "imxrt_gpio.h" #include "imxrt_iomuxc.h" +#include "imxrt1020-evk.h" #include diff --git a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c index d3bf932615..3393ab19bd 100644 --- a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c +++ b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c @@ -42,21 +42,17 @@ #include #include +#include #include -#include #include -#include -#include #include #include + +#include "imxrt_lpi2c.h" +#include "imxrt_flexspi_nor_boot.h" #include "imxrt1020-evk.h" -#ifdef CONFIG_USBHOST -int imxrt_usbhost_initialize(void); - -#endif - #ifdef CONFIG_IMXRT_USDHC # include "imxrt_usdhc.h" #endif @@ -86,6 +82,14 @@ int imxrt_usbhost_initialize(void); # define MMCSD_MINOR 0 #endif +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#ifdef CONFIG_USBHOST +int imxrt_usbhost_initialize(void); +#endif + /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_userleds.c b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_userleds.c index 6941c525ad..ada5513eb7 100644 --- a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_userleds.c +++ b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_userleds.c @@ -86,6 +86,7 @@ void board_userled(int led, bool ledon) case 0: imxrt_gpio_write(GPIO_USERLED, !ledon); /* Low illuminates */ break; + default: break; }