OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [shmdr/] [setckvec.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  Shm_setclockvec
2
 *
3
 *  This routines installs the shared memory clock interrupt handler
4
 *  used when the driver is used in polling mode.
5
 *
6
 *  INPUT PARAMETERS:  NONE
7
 *
8
 *  OUTPUT PARAMETERS: NONE
9
 *
10
 *  COPYRIGHT (c) 1989-1999.
11
 *  On-Line Applications Research Corporation (OAR).
12
 *
13
 *  The license and distribution terms for this file may be
14
 *  found in the file LICENSE in this distribution or at
15
 *  http://www.OARcorp.com/rtems/license.html.
16
 *
17
 *  $Id: setckvec.c,v 1.2 2001-09-27 12:01:13 chris Exp $
18
 */
19
 
20
#include <rtems.h>
21
#include <rtems/libio.h>
22
 
23
#include "shm_driver.h"
24
 
25
rtems_isr Shm_setclockvec()
26
{
27
    rtems_libio_ioctl_args_t args;
28
    args.iop = 0;
29
    args.command = rtems_build_name('N', 'E', 'W', ' ');
30
    args.buffer = (void *) Shm_Poll;
31
 
32
    (void) rtems_io_control(rtems_clock_major, rtems_clock_minor, &args);
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.