mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
viewtool-stm32f107: Rename stm32_appinit.c to stm32_bringup.c for consistency with other boards.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/viewtool-stm32f107/src/Makefile
|
# configs/viewtool-stm32f107/src/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
ASRCS =
|
ASRCS =
|
||||||
CSRCS = stm32_boot.c stm32_leds.c stm32_spi.c
|
CSRCS = stm32_boot.c stm32_bringup.c stm32_leds.c stm32_spi.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_CAN),y)
|
ifeq ($(CONFIG_CAN),y)
|
||||||
CSRCS += stm32_can.c
|
CSRCS += stm32_can.c
|
||||||
|
|||||||
+8
-19
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* config/viewtool-stm32f107/src/stm32_appinit.c
|
* config/viewtool-stm32f107/src/stm32_bringup.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013, 2016-2017 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2013, 2016-2017 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -121,31 +121,20 @@ static int rtc_driver_initialize(void)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: board_app_initialize
|
* Name: stm32_bringup
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Perform application specific initialization. This function is never
|
* Perform architecture-specific initialization
|
||||||
* called directly from application code, but only indirectly via the
|
|
||||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* CONFIG_BOARD_INITIALIZE=y :
|
||||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
* Called from board_initialize().
|
||||||
* implementation without modification. The argument has no
|
|
||||||
* meaning to NuttX; the meaning of the argument is a contract
|
|
||||||
* between the board-specific initalization logic and the
|
|
||||||
* matching application logic. The value cold be such things as a
|
|
||||||
* mode enumeration value, a set of DIP switch switch settings, a
|
|
||||||
* pointer to configuration data read from a file or serial FLASH,
|
|
||||||
* or whatever you would like to do with it. Every implementation
|
|
||||||
* should accept zero/NULL as a default configuration.
|
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* Called from the NSH library
|
||||||
* any failure to indicate the nature of the failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
int stm32_bringup(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@@ -308,6 +308,22 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: stm32_bringup
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Perform architecture-specific initialization
|
||||||
|
*
|
||||||
|
* CONFIG_BOARD_INITIALIZE=y :
|
||||||
|
* Called from board_initialize().
|
||||||
|
*
|
||||||
|
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
|
||||||
|
* Called from the NSH library
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int stm32_bringup(void);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_spidev_initialize
|
* Name: stm32_spidev_initialize
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user