⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exc_handler.c

📁 COG-VP12864液晶屏驱动代码及对应RTC实例
💻 C
字号:
/*
********************************************************
// Copyright (c)2004 Ark Pioneer Microelectronics Ltd.,
// All Rights Reserved
//
// Filename: exc_handler.c
// Version: 1.0
// Created: 2004.03.04   By: Philip
*********************************************************
*/
#include <irq.h>
#include <mipsreg.h>
#include <uart.h>

#undef DBG

void Check_Exception (WORD Cause)
{
    WORD ExcCode;


    printf("\n ==> Check_Exception(). \n");
   

    ExcCode = ( Cause & 0x0000007c ) >> 2 ;
    switch( ExcCode )
    {
    case Int:
        /* Describe processing for interrupt exception */

        printf("\n An interrupt exception find... \n");

        IrqProcess();
        break;
        
    case Mod:
        /* Describe processing for TLB modified exception */
        break;
        
    case TLBL:
        /* Describe processing for TLB refill exception */
        break;
        
    case TLBS:
        /* Describe processing for TLB refill exception */
        break;
        
    case AdEL:
        /* Describe processing for address error exception */
        break;
        
    case AdES:
        /* Describe processing for address error exception */
        break;

    case IBE:
        /* Describe processing for bus error exception */
        break;

    case DBE:
        /* Describe processing for bus error exception */
        break;

    case Sys:
        /* Describe processing for system call exception */
        break;

    case Bp:
        /* Describe processing for breakpoint exception */
        break;

    case RI:
        /* Describe processing for reserved instruction exception */
        break;

    case CpU:
        /* Describe processing for coprocessor unusable exception */
        break;

    case Ov:
        /* Describe processing for operation overflow exception */
        break;

    case Tr:
        /* Describe processing for trap exception */
        break;

    case FPE:
        /* Describe processing for floating point exception */
        break;

    case WATCH:
        /* Describe processing for watch exception */
        break;

    default:
        break;
    }


    printf("\n <== Check_Exception(). \n");

    
    return;   
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -