mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
arch/ceva: Replace board_app_initialize
Replaced board_app_initialize logic with board_late_initialize. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
@@ -70,46 +70,6 @@ void board_late_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: board_app_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Perform application specific initialization. This function is never
|
|
||||||
* called directly from application code, but only indirectly via the
|
|
||||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
|
||||||
* implementation without modification. The argument has no
|
|
||||||
* meaning to NuttX; the meaning of the argument is a contract
|
|
||||||
* between the board-specific initialization 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:
|
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
|
||||||
* any failure to indicate the nature of the failure.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_BOARDCTL
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
|
||||||
{
|
|
||||||
/* Perform the arch late initialization */
|
|
||||||
|
|
||||||
ceva_lateinitialize();
|
|
||||||
|
|
||||||
/* Perform the board late initialization */
|
|
||||||
|
|
||||||
board_lateinitialize();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_LIB_BOARDCTL */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: board_app_finalinitialize
|
* Name: board_app_finalinitialize
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ struct kinetis_nsh_s
|
|||||||
static struct kinetis_nsh_s g_nsh;
|
static struct kinetis_nsh_s g_nsh;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
# undef NSH_HAVEUSBDEV
|
# undef NSH_HAVEUSBDEV
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -89,7 +89,6 @@
|
|||||||
# define CONFIG_NSH_MMCSDMINOR 0
|
# define CONFIG_NSH_MMCSDMINOR 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ static void lpc43_i2ctool(void)
|
|||||||
# define lpc43_i2ctool()
|
# define lpc43_i2ctool()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -80,7 +80,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* boards/arm/samv7/same70-xplained/src/sam_boarctl.c
|
* boards/arm/samv7/same70-xplained/src/sam_boardctl.c
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
|
# boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS stm32_boot.c stm32_bringup.c)
|
set(SRCS stm32_boot.c stm32_bringup.c)
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
|
# boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS stm32_boot.c stm32_spi.c stm32_dma_alloc.c)
|
set(SRCS stm32_boot.c stm32_spi.c stm32_dma_alloc.c)
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,6 @@
|
|||||||
# include "stm32wb_blehci.h"
|
# include "stm32wb_blehci.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "nucleo-wb55rg.h"
|
#include "nucleo-wb55rg.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -169,6 +169,5 @@ void board_late_initialize(void)
|
|||||||
syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n",
|
syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n",
|
||||||
CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO);
|
CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
||||||
|
|||||||
Reference in New Issue
Block a user