Fixes for clean compile/link

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2102 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-09-28 23:33:51 +00:00
parent f9d25c3ee8
commit 3830f4ff39
4 changed files with 10 additions and 19 deletions

View File

@ -133,14 +133,14 @@ extern "C" {
****************************************************************************/
/****************************************************************************
* Name: up_lowsetup
* Name: stm32_lowsetup
*
* Description:
* Called at the very beginning of _start. Performs low level initialization.
*
****************************************************************************/
EXTERN void up_lowsetup(void);
EXTERN void stm32_lowsetup(void);
/****************************************************************************
* Name: stm32_clockconfig
@ -152,17 +152,6 @@ EXTERN void up_lowsetup(void);
EXTERN void stm32_clockconfig(void);
/****************************************************************************
* Name: up_clockconfig
*
* Description:
* Called early in the bootsequence (before .data and .bss are available)
* in order to configure initial clocking.
*
****************************************************************************/
EXTERN void up_clockconfig(void);
/****************************************************************************
* Name: stm32_configgpio
*

View File

@ -40,6 +40,8 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <arch/board/board.h>
#include "up_internal.h"
#include "up_arch.h"
@ -206,7 +208,7 @@ void up_lowputc(char ch)
}
/**************************************************************************
* Name: up_lowsetup
* Name: stm32_lowsetup
*
* Description:
* This performs basic initialization of the USART used for the serial
@ -215,7 +217,7 @@ void up_lowputc(char ch)
*
**************************************************************************/
void up_lowsetup(void)
void stm32_lowsetup(void)
{
#if !defined(CONFIG_USART1_DISABLE) || !defined(CONFIG_USART2_DISABLE) || !defined(CONFIG_USART3_DISABLE)
uint32 enr;

View File

@ -438,7 +438,7 @@ static int up_setup(struct uart_dev_s *dev)
uint16 regval;
/* Note: The logic here depends on the fact that that the USART module
* was enabled and the pins were configured in up_lowsetup().
* was enabled and the pins were configured in stm32_lowsetup().
*/
/* Configure CR2 */
@ -961,7 +961,7 @@ static boolean up_txready(struct uart_dev_s *dev)
void up_earlyserialinit(void)
{
/* NOTE: All GPIO configuration for the USARTs was performed in
* up_lowsetup
* stm32_lowsetup
*/
/* Disable all USARTS */

View File

@ -101,8 +101,8 @@ void __start(void)
/* Configure the uart so that we can get debug output as soon as possible */
up_clockconfig();
up_lowsetup();
stm32_clockconfig();
stm32_lowsetup();
showprogress('A');
/* Clear .bss. We'll do this inline (vs. calling memset) just to be