📄 isr2.c
字号:
#pragma option f0
/*
* CYC Code Development System
* Tutorial Interrupt Example
* ISR2.C
* This code may be adapted for any purpose
* when used with the CYC Code Development
* System. No warranty is implied or given
* as to their usability for any purpose.
*
* (c) Copyright 2000 Byte Craft Limited
* 421 King St.N., Waterloo, ON, Canada, N2J 4E4
* VOICE: 1 (519) 888 6911
* FAX : 1 (519) 746 6751
* email: support@bytecraft.com
*
* REVISION HISTORY
* v1.00 AL 08/2000 Initial Version.
*/
/*_rtccint_*/
/* use this directive to stop the compiler from saving the A and IX registers */
/* #pragma option REGSAVEOFF */
/*_rtccint_*/
#include <dev\c63512.h>
#include <port.h>
/*_rtccint_*/
int interrupt_mask;
int interrupt_count;
void GPIO_ISR(void)
{
interrupt_count++;
}
void main(void)
{
interrupt_count = 0;
GLOBAL_INTERRUPT = interrupt_mask = GPIO_ENABLE;
while(1); /* wait for interrupts */
}
/*_rtccint_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -