testint.bak
来自「这是一个基于nec78f8024的led驱动程序」· BAK 代码 · 共 51 行
BAK
51 行
/*
*******************************************************************************
** 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 + =
减小字号Ctrl + -
显示快捷键?