source: rtems/c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c @ 97d0b9b

4.115
Last change on this file since 97d0b9b was 97d0b9b, checked in by Chris Johns <chrisj@…>, on 05/26/14 at 11:48:36

bsp/gdbarmsim: Switch to the standard arm/shared/startup.

Switch to the standard ARM startup code. This requires adding the
standard interrupt code. The interrupt code does nothing at this
point in time. I do not know if the ARM simulator in GDB supports
interrupts.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_interrupt
5 *
6 * @brief GDB ARM Simulator interrupt support.
7 */
8
9/*
10 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <rtems/score/armv4.h>
24#include <rtems/score/armv7m.h>
25
26#include <bsp.h>
27#include <bsp/irq.h>
28#include <bsp/irq-generic.h>
29#include <bsp/linker-symbols.h>
30
31static inline bool lpc24xx_irq_is_valid(rtems_vector_number vector)
32{
33  return vector <= BSP_INTERRUPT_VECTOR_MAX;
34}
35
36void lpc24xx_irq_set_priority(rtems_vector_number vector, unsigned priority)
37{
38}
39
40unsigned lpc24xx_irq_get_priority(rtems_vector_number vector)
41{
42}
43
44#ifdef ARM_MULTILIB_ARCH_V4
45
46rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
47{
48  return RTEMS_SUCCESSFUL;
49}
50
51rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
52{
53  return RTEMS_SUCCESSFUL;
54}
55
56rtems_status_code bsp_interrupt_facility_initialize(void)
57{
58  /* Install the IRQ exception handler */
59  _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ARMV4_Exception_interrupt, NULL);
60
61  return RTEMS_SUCCESSFUL;
62}
63
64#endif /* ARM_MULTILIB_ARCH_V4 */
Note: See TracBrowser for help on using the repository browser.