main.c

来自「这是nrf24lu1的无线鼠标源代码,应用平台是keil c」· C语言 代码 · 共 39 行

C
39
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?