📄 testint.bak
字号:
/*
*******************************************************************************
** COPYRIGHT (C) NEC Electronics Corporation 2008
** NEC ELECTRONICS CONFIDENTIAL AND PROPRIETARY
** All rights reserved by NEC Electronics Corporation.
** Use of copyright notice does not evidence publication.
**
** Filename : int.c
** Abstract : This file implements device driver for INT module.
**
** Device : uPD78F8024
**
** Compiler : NEC/CC78K0
**
*******************************************************************************
*/
/*
*******************************************************************************
** Include files
*******************************************************************************
*/
#include "macrodriver.h"
#include "int.h"
/*
**-----------------------------------------------------------------------------
**
** function name:
** INT_Init
**
** Parameters:
** void
**
** Returns:
** void
**
**-----------------------------------------------------------------------------
*/
void INT_Init( void )
{
/* only INTP1 interrupt rising edge detection enabled */
EGP = EGP_INT;
/* all external interrupt falling edge detection disabled */
EGN = EGN_INT;
/* INTP1 interrupt servicing enabled */
PMK1 = INTERRUPT_UNMASKED;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -