C51 COMPILER V9.59.0.0 STC8A_EXTI 06/10/2021 10:21:43 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_EXTI OBJECT MODULE PLACED IN .\list\STC8A_Exti.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\Driver\src\STC8A_Exti.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR(.. -\Driver\inc;..\User;..\App\inc) DEBUG PRINT(.\list\STC8A_Exti.lst) TABS(2) OBJECT(.\list\STC8A_Exti.obj) line level source 1 /*---------------------------------------------------------------------*/ 2 /* --- STC MCU Limited ------------------------------------------------*/ 3 /* --- STC 1T Series MCU Demo Programme -------------------------------*/ 4 /* --- Mobile: (86)13922805190 ----------------------------------------*/ 5 /* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/ 6 /* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/ 7 /* --- Web: www.STCMCU.com --------------------------------------------*/ 8 /* --- Web: www.STCMCUDATA.com ---------------------------------------*/ 9 /* --- QQ: 800003751 -------------------------------------------------*/ 10 /* 如果要在程序中使用此代码,请在程序中注明使用了STC的资料及程序 */ 11 /*---------------------------------------------------------------------*/ 12 13 #include "STC8A_Exti.h" 14 15 //======================================================================== 16 // 函数: u8 Ext_Inilize(u8 EXT, EXTI_InitTypeDef *INTx) 17 // 描述: 外部中断初始化程序. 18 // 参数: EXT: 外部中断号, INTx: 结构参数,请参考Exti.h里的定义. 19 // 返回: 成功返回 SUCCESS, 错误返回 FAIL. 20 // 版本: V1.0, 2012-10-22 21 //======================================================================== 22 u8 Ext_Inilize(u8 EXT, EXTI_InitTypeDef *INTx) 23 { 24 1 if(EXT > EXT_INT1) return FAIL; //空操作 25 1 26 1 if(EXT == EXT_INT0) //外中断0 27 1 { 28 2 IE0 = 0; //外中断0标志位 29 2 INT0_Mode(INTx->EXTI_Mode); 30 2 return SUCCESS; //成功 31 2 } 32 1 33 1 if(EXT == EXT_INT1) //外中断1 34 1 { 35 2 IE1 = 0; //外中断1标志位 36 2 INT1_Mode(INTx->EXTI_Mode); 37 2 return SUCCESS; //成功 38 2 } 39 1 return FAIL; //失败 40 1 } MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 56 ---- CONSTANT SIZE = ---- ---- XDATA SIZE = ---- ---- PDATA SIZE = ---- ---- DATA SIZE = ---- ---- IDATA SIZE = ---- ---- BIT SIZE = ---- ---- EDATA SIZE = ---- ---- HDATA SIZE = ---- ---- XDATA CONST SIZE = ---- ---- FAR CONST SIZE = ---- ---- C51 COMPILER V9.59.0.0 STC8A_EXTI 06/10/2021 10:21:43 PAGE 2 END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)