source: rtems/c/src/lib/libbsp/powerpc/t32mppc/irq/irq.c @ c6810c8

Last change on this file since c6810c8 was c6810c8, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 19, 2017 at 12:09:28 PM

bsps: Improve interrupt vector enable/disable API

Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable()
to not return a status code. Add bsp_interrupt_assert() and use it to
validate the vector number in the vector enable/disable implementations.

  • Property mode set to 100644
File size: 721 bytes
Line 
1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp/irq-generic.h>
16
17void bsp_interrupt_vector_enable(rtems_vector_number vector)
18{
19        bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
20}
21
22void bsp_interrupt_vector_disable(rtems_vector_number vector)
23{
24        bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
25}
26
27rtems_status_code bsp_interrupt_facility_initialize(void)
28{
29        return RTEMS_SUCCESSFUL;
30}
Note: See TracBrowser for help on using the repository browser.