?? hal_nrf_hw.c
字號:
/* 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
* Implementation of #hal_nrf_rw.
* #hal_nrf_rw is an SPI function which is hardware dependent. This file
* contains an implementation for nRF24LU1.
*/
#include <Nordic\reg24le1.h>
#include <stdint.h>
#include "hal_nrf.h"
uint8_t hal_nrf_rw(uint8_t value)
{
SPIRDAT = value;
while(!(SPIRSTAT & 0x02)); // wait for byte transfer finished
;
return SPIRDAT; // return SPI read value
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -