/*******************************************************************************
* Project:      Amped'RF Bluetooth
* File name:    GKI_nvic.h
* Description:  NVIC abstraction layer
*
* Copyright (c) 2013 Amped'RF Inc., AR Technology  All rights reserved.
*******************************************************************************/
#ifndef _GKI_NVIC_H_
#define _GKI_NVIC_H_


#define EXTI_0_IRQChannel       ((u8)0x06)  // EXTI Line0 Interrupt
#define EXTI_1_IRQChannel       ((u8)0x07)  // EXTI Line1 Interrupt
#define EXTI_2_IRQChannel       ((u8)0x08)  // EXTI Line2 Interrupt
#define EXTI_3_IRQChannel       ((u8)0x09)  // EXTI Line3 Interrupt
#define EXTI_4_IRQChannel       ((u8)0x0A)  // EXTI Line4 Interrupt
#define EXTI_9_5_IRQChannel     ((u8)0x17)  // External Line[9:5] Interrupts
#define EXTI_15_10_IRQChannel   ((u8)0x28)  // External Line[15:10] Interrupts


typedef struct
{
  u8 NVIC_IRQChannel;
  u8 NVIC_IRQChannelPreemptionPriority;
  u8 NVIC_IRQChannelSubPriority;
  FunctionalState NVIC_IRQChannelCmd;
} tGKI_nvic_Init;




// Prototypes
void GKI_nvic_InitStruct(tGKI_nvic_Init *);
void GKI_nvic_Init(tGKI_nvic_Init *);
void GKI_nvic_Reset(void);
void GKI_nvic_SetUartIsr(u16, u8);


#endif // _GKI_NVIC_H_
//--------------------------------------------------------------
//