STM32L4: Eliminate a warning about implicit definition of function. While we are at it, let's improve the naming a little too.
This commit is contained in:
parent
d88dc9b2e5
commit
2319ea53a9
@ -41,7 +41,7 @@
|
|||||||
* are provided by common STM32 logic. To use this common SPI logic on your
|
* are provided by common STM32 logic. To use this common SPI logic on your
|
||||||
* board:
|
* board:
|
||||||
*
|
*
|
||||||
* 1. Provide logic in stm32l4_boardinitialize() to configure SPI chip select
|
* 1. Provide logic in stm32l4_board_initialize() to configure SPI chip select
|
||||||
* pins.
|
* pins.
|
||||||
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
||||||
* board-specific logic. These functions will perform chip selection and
|
* board-specific logic. These functions will perform chip selection and
|
||||||
|
@ -97,7 +97,7 @@ FAR struct spi_dev_s *stm32l4_spibus_initialize(int bus);
|
|||||||
* (including stm32l4_spibus_initialize()) are provided by common STM32 logic. To use this
|
* (including stm32l4_spibus_initialize()) are provided by common STM32 logic. To use this
|
||||||
* common SPI logic on your board:
|
* common SPI logic on your board:
|
||||||
*
|
*
|
||||||
* 1. Provide logic in stm32l4_boardinitialize() to configure SPI chip select
|
* 1. Provide logic in stm32l4_board_initialize() to configure SPI chip select
|
||||||
* pins.
|
* pins.
|
||||||
* 2. Provide stm32l4_spi1/2/...select() and stm32l4_spi1/2/...status() functions in your
|
* 2. Provide stm32l4_spi1/2/...select() and stm32l4_spi1/2/...status() functions in your
|
||||||
* board-specific logic. These functions will perform chip selection and
|
* board-specific logic. These functions will perform chip selection and
|
||||||
|
@ -358,7 +358,7 @@ void __start(void)
|
|||||||
|
|
||||||
/* Initialize onboard resources */
|
/* Initialize onboard resources */
|
||||||
|
|
||||||
stm32l4_boardinitialize();
|
stm32l4_board_initialize();
|
||||||
showprogress('F');
|
showprogress('F');
|
||||||
|
|
||||||
/* Then start NuttX */
|
/* Then start NuttX */
|
||||||
|
59
arch/arm/src/stm32l4/stm32l4_start.h
Normal file
59
arch/arm/src/stm32l4/stm32l4_start.h
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
/************************************************************************************
|
||||||
|
* arch/arm/src/stm32l4/stm32l4_start.h
|
||||||
|
*
|
||||||
|
* Copyrigth (C) 2017 Gregory Nutt. All rights reserved.
|
||||||
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
************************************************************************************/
|
||||||
|
|
||||||
|
#ifndef __ARCH_ARM_SRC_STM32L4_STM32L4_START_H
|
||||||
|
#define __ARCH_ARM_SRC_STM32L4_STM32L4_START_H
|
||||||
|
|
||||||
|
/************************************************************************************
|
||||||
|
* Included Files
|
||||||
|
************************************************************************************/
|
||||||
|
|
||||||
|
/************************************************************************************
|
||||||
|
* Public Function Prototypes
|
||||||
|
************************************************************************************/
|
||||||
|
|
||||||
|
/************************************************************************************
|
||||||
|
* Name: stm32l4_board_initialize
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* All STM32L4 architectures must provide the following entry point. This entry
|
||||||
|
* point is called early in the initialization -- after all memory has been
|
||||||
|
* configured and mapped but before any devices have been initialized.
|
||||||
|
*
|
||||||
|
************************************************************************************/
|
||||||
|
|
||||||
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
|
#endif /* __ARCH_ARM_SRC_STM32L4_STM32L4_START_H */
|
@ -43,6 +43,7 @@
|
|||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
#include "up_arch.h"
|
#include "up_arch.h"
|
||||||
|
#include "stm32l4_start.h"
|
||||||
#include "b-l475e-iot01a.h"
|
#include "b-l475e-iot01a.h"
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
@ -50,16 +51,16 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry
|
||||||
* is called early in the initialization -- after all memory has been configured
|
* point is called early in the initialization -- after all memory has been
|
||||||
* and mapped but before any devices have been initialized.
|
* configured and mapped but before any devices have been initialized.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
@ -243,7 +243,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -252,7 +252,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ void stm32l4_spiinitialize(void)
|
|||||||
* are provided by common STM32 logic. To use this common SPI logic on your
|
* are provided by common STM32 logic. To use this common SPI logic on your
|
||||||
* board:
|
* board:
|
||||||
*
|
*
|
||||||
* 1. Provide logic in stm32l4_boardinitialize() to configure SPI chip select
|
* 1. Provide logic in stm32l4_board_initialize() to configure SPI chip select
|
||||||
* pins.
|
* pins.
|
||||||
* 2. Provide stm32l4_spi1/2select() and stm32l4_spi1/2status() functions in your
|
* 2. Provide stm32l4_spi1/2select() and stm32l4_spi1/2status() functions in your
|
||||||
* board-specific logic. These functions will perform chip selection and
|
* board-specific logic. These functions will perform chip selection and
|
||||||
|
@ -252,7 +252,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -261,7 +261,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32 architectures must provide the following entry point. This entry point
|
* All STM32 architectures must provide the following entry point. This entry point
|
||||||
@ -62,7 +62,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
@ -117,7 +117,7 @@ void weak_function stm32l4_spiinitialize(void)
|
|||||||
* are provided by common STM32 logic. To use this common SPI logic on your
|
* are provided by common STM32 logic. To use this common SPI logic on your
|
||||||
* board:
|
* board:
|
||||||
*
|
*
|
||||||
* 1. Provide logic in stm32l4_boardinitialize() to configure SPI chip select
|
* 1. Provide logic in stm32l4_board_initialize() to configure SPI chip select
|
||||||
* pins.
|
* pins.
|
||||||
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
||||||
* board-specific logic. These functions will perform chip selection and
|
* board-specific logic. These functions will perform chip selection and
|
||||||
|
@ -249,7 +249,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -258,7 +258,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ void weak_function stm32l4_spiinitialize(void)
|
|||||||
* are provided by common STM32 logic. To use this common SPI logic on your
|
* are provided by common STM32 logic. To use this common SPI logic on your
|
||||||
* board:
|
* board:
|
||||||
*
|
*
|
||||||
* 1. Provide logic in stm32l4_boardinitialize() to configure SPI chip select
|
* 1. Provide logic in stm32l4_board_initialize() to configure SPI chip select
|
||||||
* pins.
|
* pins.
|
||||||
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
* 2. Provide stm32l4_spi1/2/3select() and stm32l4_spi1/2/3status() functions in your
|
||||||
* board-specific logic. These functions will perform chip selection and
|
* board-specific logic. These functions will perform chip selection and
|
||||||
|
@ -438,7 +438,7 @@ extern "C"
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32 architectures must provide the following entry point. This entry point
|
* All STM32 architectures must provide the following entry point. This entry point
|
||||||
@ -447,7 +447,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32 architectures must provide the following entry point. This entry point
|
* All STM32 architectures must provide the following entry point. This entry point
|
||||||
@ -62,7 +62,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
@ -135,7 +135,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry
|
* All STM32L4 architectures must provide the following entry point. This entry
|
||||||
@ -144,7 +144,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -65,7 +65,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -302,7 +302,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void);
|
void stm32l4_board_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32l4_boardinitialize
|
* Name: stm32l4_board_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||||
@ -65,7 +65,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void stm32l4_boardinitialize(void)
|
void stm32l4_board_initialize(void)
|
||||||
{
|
{
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user