From 48a7fa31f918a6fc88719b3c9393a9ba2829f42a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 15 Nov 2016 10:37:59 -0600 Subject: Remove texinfo format documentation. Replaced by Sphinx formatted documentation. closes #2812. --- doc/user/example.texi | 83 --------------------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 doc/user/example.texi (limited to 'doc/user/example.texi') diff --git a/doc/user/example.texi b/doc/user/example.texi deleted file mode 100644 index d6f24b9b14..0000000000 --- a/doc/user/example.texi +++ /dev/null @@ -1,83 +0,0 @@ -@c -@c COPYRIGHT (c) 1989-2014. -@c On-Line Applications Research Corporation (OAR). -@c All rights reserved. - -@node Example Application, Glossary, Linker Sets RTEMS_LINKER_RWSET_ITEM_ORDERED - Defines an ordered read-write linker set item, Top -@chapter Example Application - -@example -/* - * This file contains an example of a simple RTEMS - * application. It instantiates the RTEMS Configuration - * Information using confdef.h and contains two tasks: - * a user initialization task and a simple task. - */ - -#include - -rtems_task user_application(rtems_task_argument argument); - -rtems_task init_task( - rtems_task_argument ignored -) -@{ - rtems_id tid; - rtems_status_code status; - rtems_name name; - - name = rtems_build_name( 'A', 'P', 'P', '1' ) - - status = rtems_task_create( - name, 1, RTEMS_MINIMUM_STACK_SIZE, - RTEMS_NO_PREEMPT, RTEMS_FLOATING_POINT, &tid - ); - if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ - printf( "rtems_task_create failed with status of %d.\n", status ); - exit( 1 ); - @} - - status = rtems_task_start( tid, user_application, 0 ); - if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ - printf( "rtems_task_start failed with status of %d.\n", status ); - exit( 1 ); - @} - - status = rtems_task_delete( SELF ); /* should not return */ - printf( "rtems_task_delete returned with status of %d.\n", status ); - exit( 1 ); -@} - - -rtems_task user_application(rtems_task_argument argument) -@{ - /* application specific initialization goes here */ - - while ( 1 ) @{ /* infinite loop */ - - /* APPLICATION CODE GOES HERE - * - * This code will typically include at least one - * directive which causes the calling task to - * give up the processor. - */ - @} -@} - -/* The Console Driver supplies Standard I/O. */ -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -/* The Clock Driver supplies the clock tick. */ -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_TASKS 2 - -#define CONFIGURE_INIT_TASK_NAME rtems_build_name( 'E', 'X', 'A', 'M' ) -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#define CONFIGURE_INIT -#include -@end example - - - -- cgit v1.2.3