Last change
on this file since 8660a76 was
45abed9,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/22/09 at 20:58:43
|
2009-07-22 Joel Sherrill <joel.sherrill@…>
- Makefile, README, main_pcmmio_dac.c, mio_io.h, mio_io_rtems.c,
pcmmio_commands.h, pcmmio_shell.c, rtems_config.c: Add pcmmio_irq
command and do some cleanup as noticed on other files.
- main_pcmmio_irq.c: New file.
|
-
Property mode set to
100644
|
File size:
780 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 | |
---|
12 | extern int main(int, char **); |
---|
13 | |
---|
14 | void *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 1000 |
---|
37 | |
---|
38 | |
---|
39 | #define CONFIGURE_INIT |
---|
40 | #include <rtems/confdefs.h> |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.