source: rtems/cpukit/score/cpu/arm/armv7m-exception-handler-get.c @ 9165349d

Last change on this file since 9165349d was 80cf60e, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32

Canonicalize config.h include

Use the following variant which was already used by most source files:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

  • Property mode set to 100644
File size: 688 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief ARMV7M Get Exception Handler
5 */
6
7/*
8 * Copyright (c) 2011 Sebastian Huber.  All rights reserved.
9 *
10 *  embedded brains GmbH
11 *  Obere Lagerstr. 30
12 *  82178 Puchheim
13 *  Germany
14 *  <rtems@embedded-brains.de>
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21#ifdef HAVE_CONFIG_H
22#include "config.h"
23#endif
24
25#include <rtems/score/armv7m.h>
26#include <rtems/score/cpu.h>
27
28#ifdef ARM_MULTILIB_ARCH_V7M
29
30ARMV7M_Exception_handler _ARMV7M_Get_exception_handler( int index )
31{
32  return _ARMV7M_SCB->vtor [index];
33}
34
35#endif /* ARM_MULTILIB_ARCH_V7M */
Note: See TracBrowser for help on using the repository browser.