/**********************************************************************/
/*                                                                    */
/* File name: app_int_cfg.c                                           */
/*                                                                    */
/* Since:     2007-02-25                                              */
/*                                                                    */
/* Version:   uip Kernel v1.09                                        */
/*            Copyright (C) 2006..2018 Wang Baojin.                   */
/*                                                                    */
/* Author:    Designed by Wang Baojin(王保进)                         */
/*                                                                    */
/*                                                                    */
/* Purpose:   Task, alarm and counter's definition                    */
/*                                                                    */
/* Distribution: This file is part of uip kernel demo.                */
/*            uip Kernel is free software; you can redistribute it    */
/*            and/or modify it under the terms of the GNU General     */
/*            Public License as published by the Free Software        */
/*            Foundation; either version 2, or (at your option)       */
/*            any later version.                                      */
/*                                                                    */
/*            uip Kernel is distributed in the hope that it will be   */
/*            useful, but WITHOUT ANY WARRANTY; without even the      */
/*            implied warranty of MERCHANTABILITY or FITNESS FOR A    */
/*            PuipICULAR PURPOSE.  See the GNU General Public         */
/*            License for more details.                               */
/*                                                                    */
/*            You should have received a copy of the GNU General      */
/*            Public License along with gpsim; see the file           */
/*            COPYING.txt. If not, write to the Free Software         */
/*            Foundation, 59 Temple Place - Suite 330,                */
/*            Boston, MA 02111-1307, USA.                             */
/*                                                                    */
/*          > A special exception to the GPL can be applied should    */
/*            you wish to distribute a combined work that includes    */
/*            uip Kernel, without being obliged to provide the        */
/*            source code for any proprietary components.             */
/*                                                                    */
/* History:                                                           */
/*                                                                    */
/*                                                                    */
/**********************************************************************/

#include "uip_kernel_api.h"
#include "chip_uip_interrupt.h"
#include "demo.h"

#define ADC_INT_HANDLING_DATA_LENGTH  4
unsigned char ChipNUC200ADCIntHandlingData[ADC_INT_HANDLING_DATA_LENGTH];   

extern VOID ADC_IRQHandler_Process(VOID  *arg, VOID *info);

UIP_UINT32 Chip_NUC200_ADC_ISR_Handler_Callback(uipIntPtr intControl)
{
    return 0;
}

/* 此处初始化系统所管理中断的控制块结构体 */
UIP_Exc_VectorTableEntry UIP_Exc_VectorTable[] = 
{
    {	
        {
            Int_ID_ADC_IRQHandler,       /* Int's ID */
            INT_OUTCOME_NULL,            /* Expected outcome of int handling. 期望的中断处理结果 */
            INT_OUTCOME_NULL,            /* The outcome of int handling. 实际的中断处理结果 */
            INT_OUTCOME_NULL,            /* Info for Int's callback. 指向回调函数使用的各种数据 */
            Chip_NUC200_ADC_ISR_Handler_Callback,   /* Callback routine called when handling int. */
			                               /* 在中断处理程序最后执行的回调函数，可执行各种判断结果，从而确定退出时处理机制的操作，
                                              通过返回值告知上一层调用逻辑，执行何种退出处理机制 */	                                       
            INT_OUTCOME_NULL             /* reserved pointer for more information. 预留的指针，用于传递更多的参数 */
        },       
        ADC_IRQHandler_Process,        /* 用户编写的中断处理函数 */
        &ChipNUC200ADCIntHandlingData[0]    /* 用户编写的中断处理函数需要处理的数据所在缓冲区的指针 */
    }
};

IntNumberType AppIntNumber = 1;

/***************************************************************************************/
/*                          End of File : app_int_cfg.c                                */
/***************************************************************************************/
