source: multiio/pcmmio/original/rtems_config.c

Last change on this file was df7e0e5, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 26, 2011 at 11:03:17 PM

2011-01-26 Joel Sherrill <joel.sherrill@…>

  • Makefile, rtems_config.c: Add include of <unistd.h> for prototype of sleep().
  • Property mode set to 100644
File size: 800 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#include <unistd.h>
10
11#include "mio_io.h"
12
13extern int main(int, char **);
14
15void *POSIX_Init(
16  void *ignored
17)
18{
19  printk( "Initializing PCMMIO\n" );
20  sleep(1);
21  /* default jumpers --> 0x300 and 0 --> no IRQ */
22  pcmmio_initialize(0x300, 0);
23
24  main(0,NULL);
25
26  exit(0);
27  return NULL;
28}
29
30/* configuration information */
31#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
32#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
33
34#define CONFIGURE_POSIX_INIT_THREAD_TABLE
35#define CONFIGURE_MAXIMUM_POSIX_THREADS      3
36#define CONFIGURE_MAXIMUM_BARRIERS           4
37#define CONFIGURE_MICROSECONDS_PER_TICK      1000
38
39
40#define CONFIGURE_INIT
41#include <rtems/confdefs.h>
42
Note: See TracBrowser for help on using the repository browser.