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

📄 tmr_isr.c

📁 这是nrf24lu1的无线鼠标源代码,应用平台是keil c
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -