]>
git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.h
1 /*******************************************************************************
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
20 * http://www.renesas.com/disclaimer
21 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
22 *******************************************************************************/
23 /**************************************************************************//**
24 * @file nvic_wrapper.h
27 * @brief Wrapper between NVIC(for Cortex-M) and GIC(for Cortex-A9)
28 ******************************************************************************/
30 #ifndef NVIC_WRAPPER_H
31 #define NVIC_WRAPPER_H
34 /******************************************************************************
35 Includes <System Includes> , "Project Includes"
36 ******************************************************************************/
40 #endif /* __cplusplus */
43 /******************************************************************************
45 ******************************************************************************/
47 /******************************************************************************
49 ******************************************************************************/
51 /******************************************************************************
53 ******************************************************************************/
55 /******************************************************************************
57 ******************************************************************************/
60 void NVIC_SetPriorityGrouping(uint32_t PriorityGroup
);
61 uint32_t NVIC_GetPriorityGrouping(void);
62 void NVIC_EnableIRQ(IRQn_Type IRQn
);
63 void NVIC_DisableIRQ(IRQn_Type IRQn
);
64 uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn
);
65 void NVIC_SetPendingIRQ(IRQn_Type IRQn
);
66 void NVIC_ClearPendingIRQ(IRQn_Type IRQn
);
67 uint32_t NVIC_GetActive(IRQn_Type IRQn
);
68 void NVIC_SetPriority(IRQn_Type IRQn
, uint32_t priority
);
69 uint32_t NVIC_GetPriority(IRQn_Type IRQn
);
70 uint32_t NVIC_EncodePriority (uint32_t PriorityGroup
, uint32_t PreemptPriority
, uint32_t SubPriority
);
71 void NVIC_DecodePriority (uint32_t Priority
, uint32_t PriorityGroup
, uint32_t* pPreemptPriority
, uint32_t* pSubPriority
);
72 void NVIC_SystemReset(void);
73 /* SysTick function */
74 uint32_t SysTick_Config(uint32_t ticks
);
75 /* Debug In/Output function */
76 uint32_t ITM_SendChar (uint32_t ch
);
77 int32_t ITM_ReceiveChar (void);
78 int32_t ITM_CheckChar (void);
82 #endif /* __cplusplus */
84 #endif /* NVIC_WRAPPER_H */