MultiBootAndIwramExample

From RTEMSWiki

Jump to: navigation, search
/*
 *  Simple test program -- simplified version of sample test hello.
 */
#include <bsp.h>
#include <gba.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>

/* Make MultiBoot */
MULTIBOOT
/* use IWRAM */
IWRAMDATA

rtems_task Init(
  rtems_task_argument ignored
)
{
  printf( "\n\n*** HELLO WORLD TEST ***\n" );
  printf( "Hello World\n" );
  printf( "*** END OF HELLO WORLD TEST ***\n" );
  exit( 0 );
}
/* configuration information */
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_INIT
#include <confdefs.h>
/* end of file */
Personal tools