⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interrupt_handler.h

📁 用于sopc builder添加组件用的ps/2 键盘 ipcore
💻 H
字号:
#ifndef __INTERRUPT_HANDLER__H__
#define __INTERRUPT_HANDLER__H__

#include <alt_types.h>
#include "alt_up_ps2_port.h"

/**
 * @brief disable the interrupt by setting proper bits to the NIOS II processor and the PS2 port
 **/
void disable_interrupt();

/**
 * @brief initialize the interrupt by setting proper bits to the NIOS II processor and the PS2 port
 **/
void interrupt_init();

/**
 * @brief a wrapper function for the interrupt handlers
 **/
void interrupt_handler(void);

/**
 * @brief the subroutine to be placed at address 20 (interrupt handler)
 **/
void the_isr(void);

/**
 * @brief the interrupt handler for the PS2 port
 **/
void ps2_port_isr();

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -