app_setup.h

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

H
34
字号
/* 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
 * Setup header file for the Wireless Desktop reference application
 *
 * @author Lasse Olsen 
 *
 * @defgroup nordic_app_protocol_fap_setup Frequency Agility Protocol application setup parameters
 * @{
 * @ingroup nordic_protocol_wdp
 */

#ifndef _APP_SETUP_H
#define _APP_SETUP_H

#define APP_PAIRING_TIMEOUT (5000000/FAP_RX_PERIOD)   // Pairing enabeled 5 sec. after startup

#define APP_PAIRING_COMMITED 0xaa

#define PARAM_PAGE_N0    31                          // Use flash page 31 for parameter storage
#define LU1_PAGESIZE 512

#define PARAM_PREV_PAIRED (LU1_PAGESIZE*PARAM_PAGE_N0)
#define PARAM_MASTER_ADR0 (PARAM_PREV_PAIRED + 1)

#define PARAM_DEV_TYPE (LU1_PAGESIZE*PARAM_PAGE_N0)
#define PARAM_DEV_ADR0 (PARAM_DEV_TYPE + 1)

#endif

⌨️ 快捷键说明

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