📄 p_clock.c
字号:
/* * Clock Tick interrupt conexion code. * * COPYRIGHT (c) 1989-1997. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may in * the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * Modified to support the MPC750. * Modifications Copyright (c) 1999 Eric Valette valette@crf.canon.fr * * $Id: p_clock.c,v 1.2.4.1 2003/09/04 18:45:20 joel Exp $ */#include <bsp.h>#include <bsp/irq.h>#include <libcpu/c_clock.h>static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER, clockIsr, (rtems_irq_enable)clockOn, (rtems_irq_disable)clockOff, (rtems_irq_is_enabled) clockIsOn}; int BSP_disconnect_clock_handler (void){ return BSP_remove_rtems_irq_handler (&clockIrqData);}int BSP_connect_clock_handler (void){ return BSP_install_rtems_irq_handler (&clockIrqData);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -