Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Eint.c
Package: uCOS-II.rar [view]
Upload User: jinguanrq
Upload Date: 2022-06-04
Package Size: 724k
Code Size: 2k
Category:
uCOS
Development Platform:
C/C++
- /*--- include files ---*/
- #include "44blib.h"
- #include "44b.h"
- #include "def.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- void Eint4567Isr(void);
- /*********************************************************************************************
- * name: init_Eint
- * func:
- * para: none
- * ret: none
- * modify:
- * comment:
- *********************************************************************************************/
- void init_Eint(void)
- {
- /* enable interrupt */
- rI_ISPC = 0x3ffffff;
- rEXTINTPND = 0xf; // clear EXTINTPND reg
- rINTMOD = 0x0;
- rINTCON = 0x1;
- rINTMSK = ~(BIT_GLOBAL|BIT_EINT4567);
- /* set EINT interrupt handler */
- pISR_EINT4567 = (int)Eint4567Isr;
- /* PORT G */
- rPCONG = 0xffff; // EINT7~0
- rPUPG = 0x0; // pull up enable
- rEXTINT = rEXTINT|0x22220020; // EINT1、EINT4567 falling edge mode
- rI_ISPC |= BIT_EINT4567;
- rEXTINTPND = 0xf; // clear EXTINTPND reg
- }
- #if 0
- /*********************************************************************************************
- * name: Eint4567Isr
- * func:
- * para: none
- * ret: none
- * modify:
- * comment:
- *********************************************************************************************/
- void Eint4567Isr(void)
- {
- Uart_Printf("Key pressed...n");
- //which_int = rEXTINTPND;
- rEXTINTPND = 0xf; //clear EXTINTPND reg.
- rI_ISPC |= BIT_EINT4567; //clear pending_bit
- }
- #endif
- #ifdef __cplusplus
- }
- #endif