arch/sh/src/common/up_initialize.c
/****************************************************************************
 * Name: up_initialize
 *
 * Description:
 *   up_initialize will be called once during OS initialization after the
 *   basic OS services have been initialized.  The architecture specific
 *   details of initializing the OS will be handled here.  Such things as
 *   setting up interrupt service routines, starting the clock, and
 *   registering device drivers are some of the things that are different
 *   for each processor and hardware platform.
 *
 *   up_initialize is called after the OS initialized but before the user
 *   initialization logic has been started and before the libraries have
 *   been initialized.  OS services and driver services are available.
 *
 ****************************************************************************/
up_initialize
Description:
up_initialize will be called once during OS initialization after the
basic OS services have been initialized.  The architecture specific
details of initializing the OS will be handled here.  Such things as
setting up interrupt service routines, starting the clock, and
registering device drivers are some of the things that are different
for each processor and hardware platform.

up_initialize is called after the OS initialized but before the user
initialization logic has been started and before the libraries have
been initialized.  OS services and driver services are available.
up_initialize Description : up_initialize will be called once during OS initialization after the basic OS services have been initialized . The architecture specific details of initializing the OS will be handled here . Such things as setting up interrupt service routines starting the clock and registering device drivers are some of the things that are different for each processor and hardware platform . up_initialize is called after the OS initialized but before the user initialization logic has been started and before the libraries have been initialized . OS services and driver services are available .
void up_initialize(void)
{
  current_regs = NULL;
  up_calibratedelay();
  up_irqinitialize();
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
  up_timer_initialize();
#endif
#if CONFIG_NFILE_DESCRIPTORS > 0
#if defined(CONFIG_DEV_NULL)
  devnull_register();   
#endif
#if defined(CONFIG_DEV_ZERO)
  devzero_register();   
#endif
#endif 
#ifdef USE_SERIALDRIVER
  up_serialinit();
#endif
#if defined(CONFIG_DEV_LOWCONSOLE)
  lowconsole_init();
#elif defined(CONFIG_SYSLOG_CONSOLE)
  syslog_console_init();
#elif defined(CONFIG_RAMLOG_CONSOLE)
  ramlog_consoleinit();
#endif
#ifdef CONFIG_SYSLOG_CHAR
  syslog_initialize();
#endif
#ifdef CONFIG_RAMLOG_SYSLOG
  ramlog_sysloginit();
#endif
  up_netinitialize();
  up_usbinitialize();
  board_led_on(LED_IRQSENABLED);
}
void up_initialize ( void ) { current_regs = NULL ; up_calibratedelay ( ) ; up_irqinitialize ( ) ; #if ! defined ( CONFIG_SUPPRESS_INTERRUPTS ) && ! defined ( CONFIG_SUPPRESS_TIMER_INTS ) up_timer_initialize ( ) ; #endif #if CONFIG_NFILE_DESCRIPTORS > 0 #if defined ( CONFIG_DEV_NULL ) devnull_register ( ) ; #endif #if defined ( CONFIG_DEV_ZERO ) devzero_register ( ) ; #endif #endif #ifdef USE_SERIALDRIVER up_serialinit ( ) ; #endif #if defined ( CONFIG_DEV_LOWCONSOLE ) lowconsole_init ( ) ; #elif defined ( CONFIG_SYSLOG_CONSOLE ) syslog_console_init ( ) ; #elif defined ( CONFIG_RAMLOG_CONSOLE ) ramlog_consoleinit ( ) ; #endif #ifdef CONFIG_SYSLOG_CHAR syslog_initialize ( ) ; #endif #ifdef CONFIG_RAMLOG_SYSLOG ramlog_sysloginit ( ) ; #endif up_netinitialize ( ) ; up_usbinitialize ( ) ; board_led_on ( LED_IRQSENABLED ) ; }
Name: up_initialize
 Description:
   up_initialize will be called once during OS initialization after the
   basic OS services have been initialized.
Name : up_initialize Description : up_initialize will be called once during OS initialization after the basic OS services have been initialized .
/* Initialize global variables */ /* Calibrate the timing loop */ /* Initialize the interrupt subsystem */ /* Initialize the system timer interrupt */ /* Register devices */ /* Standard /dev/null */ /* Standard /dev/zero */ /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ /* Initialize the console device driver (if it is other than the standard
   * serial driver). NOTE that the naming implies that the console is a serial
   * driver.  That is usually the case, however, if no UARTs are enabled, the
   * console could als be provided through some other device, such as an LCD.
   * Architecture-specific logic will have to detect that case.
   */ /* Initialize the system logging device */ /* Initialize the netwok */ /* Initialize USB */