source: multiio/pcmmio/original/rtems_config.c @ 9175425

Last change on this file since 9175425 was 64e5f34, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 16, 2009 at 11:10:45 PM

2009-07-16 Joel Sherrill <joel.sherrill@…>

  • Makefile, rtems_config.c: Simple RTEMS Application runs polled. Does not report errors and reports all zeroes on input discretes.
  • Property mode set to 100644
File size: 729 bytes
Line 
1/*
2 *  RTEMS Configuration and Initialization for PCMMIO Demonstration Programs   
3 *
4 *  $Id$
5 */
6
7#include <rtems.h>
8#include <stdlib.h>
9
10#include "mio_io.h"
11
12extern int main(int, char **);
13
14void *POSIX_Init(
15  void *ignored
16)
17{
18  printk( "Initializing PCMMIO\n" );
19  sleep(1);
20  /* default jumpers --> 0x300 and 0 --> no IRQ */
21  pcmmio_initialize(0x300, 0);
22
23  main(0,NULL);
24
25  exit(0);
26  return NULL;
27}
28
29/* configuration information */
30#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
31#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
32
33#define CONFIGURE_POSIX_INIT_THREAD_TABLE
34#define CONFIGURE_MAXIMUM_POSIX_THREADS      3
35#define CONFIGURE_MAXIMUM_BARRIERS           4
36
37#define CONFIGURE_INIT
38#include <rtems/confdefs.h>
39
Note: See TracBrowser for help on using the repository browser.