📄 main.c
字号:
/* Copyright (c) 2007 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.
*
* $LastChangedRevision: 1769 $
*/
/** @file
* The nRF24LU1 example application main file
*
* @author Runar Kjellhaug
*/
#include <Nordic\reg24lu1.h>
#include "hal_nrf.h"
#include "radio.h"
#include "application.h"
#include "system.h"
extern bool device_op_mode;
void main(void)
{
system_init();
radio_init();
// device_op_mode initialized in system_init()
if(device_op_mode == HAL_NRF_PTX) // go to PTX or PRX device application...
{
device_ptx_mode();
}
else
{
device_prx_mode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -