fap_macros.h

来自「这是nrf24lu1的无线鼠标源代码,应用平台是keil c」· C头文件 代码 · 共 30 行

H
30
字号
/* 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
 * Hardware dependent macros for FAP
 * @defgroup nordic_protocol_fap_macro Frequency Agility Protocol HW macros
 * @{
 * @ingroup nordic_protocol_fap
 * Hardware dependent macros for FAP. These macros enables and disables
 * interrupts the FAP depends on. They must be implemented according to
 * the hardware being used.
 */

#ifndef FAP_MACROS_H__
#define FAP_MACROS_H__

// Implementation for nRF24LU1
#define FAP_NRF_IRQ_ENABLE() do { EX0 = 1;} while(0) 
#define FAP_NRF_IRQ_DISABLE()do { EX0 = 0; } while(0)
#define FAP_TIMER_IRQ_ENABLE() do { ET2 = 1;} while(0)
#define FAP_TIMER_IRQ_DISABLE() do {ET2 = 0;} while(0)      

#endif // FAP_MACROS_H__

/** @} */

⌨️ 快捷键说明

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