source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/nvic_wrapper.h@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 3.7 KB
Line 
1/*******************************************************************************
2* DISCLAIMER
3* This software is supplied by Renesas Electronics Corporation and is only
4* intended for use with Renesas products. No other uses are authorized. This
5* software is owned by Renesas Electronics Corporation and is protected under
6* all applicable laws, including copyright laws.
7* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
8* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
9* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
10* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
11* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
12* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
13* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
14* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
15* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
16* Renesas reserves the right, without notice, to make changes to this software
17* and to discontinue the availability of this software. By using this software,
18* you agree to the additional terms and conditions found by accessing the
19* following link:
20* http://www.renesas.com/disclaimer
21* Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
22*******************************************************************************/
23/**************************************************************************//**
24* @file nvic_wrapper.h
25* $Rev: $
26* $Date:: $
27* @brief Wrapper between NVIC(for Cortex-M) and GIC(for Cortex-A9)
28******************************************************************************/
29
30#ifndef NVIC_WRAPPER_H
31#define NVIC_WRAPPER_H
32
33
34/******************************************************************************
35Includes <System Includes> , "Project Includes"
36******************************************************************************/
37#ifdef __cplusplus
38extern "C"
39{
40#endif /* __cplusplus */
41
42
43/******************************************************************************
44Typedef definitions
45******************************************************************************/
46
47/******************************************************************************
48Macro definitions
49******************************************************************************/
50
51/******************************************************************************
52Variable Externs
53******************************************************************************/
54
55/******************************************************************************
56Functions Prototypes
57******************************************************************************/
58
59/* NVIC functions */
60void NVIC_SetPriorityGrouping(uint32_t PriorityGroup);
61uint32_t NVIC_GetPriorityGrouping(void);
62void NVIC_EnableIRQ(IRQn_Type IRQn);
63void NVIC_DisableIRQ(IRQn_Type IRQn);
64uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn);
65void NVIC_SetPendingIRQ(IRQn_Type IRQn);
66void NVIC_ClearPendingIRQ(IRQn_Type IRQn);
67uint32_t NVIC_GetActive(IRQn_Type IRQn);
68void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority);
69uint32_t NVIC_GetPriority(IRQn_Type IRQn);
70uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority);
71void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority);
72void NVIC_SystemReset(void);
73/* SysTick function */
74uint32_t SysTick_Config(uint32_t ticks);
75/* Debug In/Output function */
76uint32_t ITM_SendChar (uint32_t ch);
77int32_t ITM_ReceiveChar (void);
78int32_t ITM_CheckChar (void);
79
80#ifdef __cplusplus
81}
82#endif /* __cplusplus */
83
84#endif /* NVIC_WRAPPER_H */
Note: See TracBrowser for help on using the repository browser.