source: rtems/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c @ 3c7ed6b

4.104.114.84.9
Last change on this file since 3c7ed6b was 3c7ed6b, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2005 at 6:46:04 PM

2005-07-06 Markku Puro <markku.puro@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clockdrv.c, console/conio.c, console/console.c, console/defaultfont.c, include/arm_mode_bits.h, include/asm_macros.h, include/bsp.h, include/bspopts.h.in, include/conio.h, include/gba.h, include/gba_registers.h, include/tm27.h, irq/bsp_irq_asm.S, irq/bsp_irq_init.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, start/logo.S, start/start.S, startup/bspstart.c, startup/cpu.c, startup/cpu_asm.S, startup/exit.c, startup/linkcmds, timer/timer.c: New files.
  • Property mode set to 100644
File size: 798 bytes
RevLine 
[3c7ed6b]1/**
2 *  @file bsp_irq_init.c
3 *
4 *  This file contains the implementation of rtems initialization
5 *  related to interrupt handling.
6 */
7/*
8 *  RTEMS GBA BSP
9 *
10 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
11 *
12 *  The license and distribution terms for this file may be
13 *  found in found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#include <irq.h>
20#include <bsp.h>
21#include <gba_registers.h>
22
23
24/**
25 *  @brief BSP_rtems_irq_mngt_init BSP routine initialize irq registers
26 *
27 *  @param  None
28 *  @return None
29 */
30void BSP_rtems_irq_mngt_init(void)
31{
32  /* clear all interrupt status flags */
33  GBA_REG_IF = 0xffff;
34  /* disable all interrupts */
35  GBA_REG_IE = 0;
36  /* set master interrupt enable */
37  GBA_REG_IME = 1;
38}
Note: See TracBrowser for help on using the repository browser.