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