[352] | 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 | /******************************************************************************
|
---|
| 35 | Includes <System Includes> , "Project Includes"
|
---|
| 36 | ******************************************************************************/
|
---|
| 37 | #ifdef __cplusplus
|
---|
| 38 | extern "C"
|
---|
| 39 | {
|
---|
| 40 | #endif /* __cplusplus */
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | /******************************************************************************
|
---|
| 44 | Typedef definitions
|
---|
| 45 | ******************************************************************************/
|
---|
| 46 |
|
---|
| 47 | /******************************************************************************
|
---|
| 48 | Macro definitions
|
---|
| 49 | ******************************************************************************/
|
---|
| 50 |
|
---|
| 51 | /******************************************************************************
|
---|
| 52 | Variable Externs
|
---|
| 53 | ******************************************************************************/
|
---|
| 54 |
|
---|
| 55 | /******************************************************************************
|
---|
| 56 | Functions Prototypes
|
---|
| 57 | ******************************************************************************/
|
---|
| 58 |
|
---|
| 59 | /* NVIC functions */
|
---|
| 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);
|
---|
| 79 |
|
---|
| 80 | #ifdef __cplusplus
|
---|
| 81 | }
|
---|
| 82 | #endif /* __cplusplus */
|
---|
| 83 |
|
---|
| 84 | #endif /* NVIC_WRAPPER_H */
|
---|