Listing 1 The application to be embedded

/*===========================================================*\

  hello.c

\*-----------------------------------------------------------*/

#include "stdio.h"

#define PUBLIC
#define PRIVATE static

/*===========================================================*\

  main()

\*-----------------------------------------------------------*/

PUBLIC void main(void)
{

  /*--------------------------------------------------------*\
    Initialization
  \*--------------------------------------------------------*/

  init_stdio();

  /*--------------------------------------------------------*\
    Display a greeting...
  \*--------------------------------------------------------*/

  puts("Hello, embedded world!");

  /*--------------------------------------------------------*\
    If you return from main(). the startup code should
    invoke a reset...
  \*--------------------------------------------------------*/

  puts("About to reset.  Goodbye!");

}

/*===========================================================*\
   End of source file.

\*===========================================================*/

/* End of File */