📄 fap_macros.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -