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

Last change on this file since f89686d was f89686d, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 22, 2009 at 6:24:22 PM

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

  • README, main_pcmmio_dac.c, rtems_config.c: Add mode to pcmmio_dac command where it can write a pattern.
  • Property mode set to 100644
File size: 777 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#define CONFIGURE_MICROSECONDS_PER_TICK      1
37
38
39#define CONFIGURE_INIT
40#include <rtems/confdefs.h>
41
Note: See TracBrowser for help on using the repository browser.