tmr_isr.c

来自「这是nrf24lu1的无线鼠标源代码,应用平台是keil c」· C语言 代码 · 共 47 行

C
47
字号
/* Copyright (c) 2006 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is confidential property of Nordic Semiconductor. The use,
 * copying, transfer or disclosure of such information is prohibited except by express written
 * agreement with Nordic Semiconductor.
 */

/** @file
 * Interrupt handler for timer interrupts.
 *
 * @author Runar Kjellhaug
 * @author Lasse Olsen
 *
 */

#include "wdp_common.h"
#include "fap.h"

void t0_interrupt(void) interrupt INTERRUPT_TIMER0
{
}

void uart_timer_isr(void); // xx
#include "l01_bfb.h"

void t1_interrupt(void) interrupt INTERRUPT_TIMER1
{
 static uint32_t testcount = 0;
 testcount++;
 //LED2_TOGGLE();       xxxxx
 //uart_timer_isr(); 
}

volatile uint16_t timer_cnt;
void t2_interrupt(void) interrupt INTERRUPT_TIMER2
{             
  TF2H = 0;
  TF2L = 0;
  fap_timer_isr_function();
  wdp_timer_isr_function();
  
  if(timer_cnt < 0xffff)
  {
    timer_cnt++;
  }
}

⌨️ 快捷键说明

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