This is a fork from **http://tmrh20.github.io/RF24** which can be build as a static library for Atmel Studio 7.
Not all files are needed.
Just copy the following structure into a GCC Static Library project in AS7:
```
utility\
ATXMega256D3\
compatibility.c
compatibility.h
gpio.cpp
gpio.h
gpio_helper.c
gpio_helper.h
includes.h
RF24_arch_config.h
spi.cpp
spi.h
nRF24L01.h
printf.h
RF24.cpp
RF24.h
RF24_config.h
```
Only ATXMega256D3 is supported right now!
## Notes
The millisecond functionality is based on the TCE0 so don't use these pins as IO.
The operating frequency of the uC is 32MHz. If else change the TCE0 registers appropriatly in function **__start_timer()** in **compatibility.c** file for your frequency.
## Usage
Add the library to your project!
In the file where the **main()** is put the following in order to update the millisecond functionality:
```
ISR(TCE0_OVF_vect)
{
update_milisec();
}
```
Declare the rf24 radio with **RF24 radio(XMEGA_PORTC_PIN3, XMEGA_SPI_PORT_C);**
First parameter is the CE pin which can be any available pin on the uC.
Second parameter is the CS which can be on port C (**XMEGA_SPI_PORT_C**) or on port D (**XMEGA_SPI_PORT_D**).
Call the **__start_timer()** to start the millisecond timer.
** For further information please see http://tmrh20.github.io/RF24 for all documentation**
没有合适的资源?快使用搜索试试~ 我知道了~
基于Arduino的嵌入式系统入门与实践-源代码.zip
共299个文件
ino:96个
h:60个
cpp:35个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 180 浏览量
2022-07-07
07:30:58
上传
评论
收藏 84.6MB ZIP 举报
温馨提示
基于Arduino的嵌入式系统入门与实践-源代码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于Arduino的嵌入式系统入门与实践-源代码.zip (299个子文件)
core.a 183KB
README.adoc 1KB
bcm2835.c 53KB
interrupt.c 5KB
interrupt.c 5KB
compatibility.c 1KB
gpio_helper.c 1KB
compatibility.c 1022B
compatibility.c 1016B
configure 13KB
I2Cdev.cpp 55KB
RF24.cpp 44KB
RF24Audio.cpp 24KB
pyRF24.cpp 15KB
pyRF24.cpp 15KB
LiquidCrystal.cpp 9KB
LiquidCrystal_I2C.cpp 9KB
ld3320.cpp 8KB
XFS5152.cpp 7KB
gettingstarted_call_response.cpp 6KB
transfer_interrupt.cpp 6KB
gettingstarted.cpp 6KB
pingpair_dyn.cpp 6KB
transfer.cpp 6KB
gettingstarted_call_response_int.cpp 5KB
pyRF24Network.cpp 5KB
pyRF24Mesh.cpp 4KB
pingpair_dyn_int.cpp 4KB
gettingstarted_call_response_int2.cpp 4KB
spi.cpp 3KB
gpio.cpp 3KB
rpi-hub.cpp 3KB
scanner.cpp 3KB
audio.cpp 3KB
KalmanFilter.cpp 2KB
scanner.cpp 2KB
spi.cpp 2KB
gpio.cpp 2KB
main.cpp 2KB
TimerOne.cpp 1KB
SR04.cpp 1KB
spi.cpp 1KB
spi.cpp 936B
spi.cpp 888B
gpio.cpp 645B
doxygen-custom.css 12KB
Doxyfile 105KB
scanner.elf 98KB
test.ex 209B
test.ex 182B
Makefile.examples 1KB
.gitattributes 483B
.gitignore 3KB
.gitignore 236B
bcm2835.h 90KB
RF24.h 72KB
PinMap.h 12KB
I2Cdev.h 12KB
RF24Audio.h 10KB
TimerOne.h 9KB
RF24_config.h 4KB
userConfig.h 4KB
known_16bit_timers.h 4KB
LiquidCrystal_I2C.h 4KB
nRF24L01.h 3KB
LiquidCrystal.h 3KB
ld3320.h 2KB
interrupt.h 2KB
interrupt.h 2KB
SR04.h 2KB
gpio_helper.h 2KB
RF24_arch_config.h 2KB
RF24_arch_config.h 2KB
spi.h 2KB
RF24_arch_config.h 2KB
spi.h 2KB
RF24_arch_config.h 1KB
spi.h 1KB
gpio.h 1KB
spi.h 1KB
XFS5152.h 1KB
spi.h 1KB
printf.h 1KB
spi.h 1KB
RF24_arch_config.h 1KB
gpio.h 1KB
gpio.h 968B
spi.h 954B
RF24_arch_config.h 949B
gpio.h 911B
KalmanFilter.h 864B
RF24_arch_config.h 797B
RF24_arch_config.h 783B
printf.h 656B
printf.h 656B
printf.h 656B
printf.h 656B
printf.h 656B
printf.h 656B
printf.h 656B
共 299 条
- 1
- 2
- 3
资源评论
- 爱你闯天涯2023-02-13资源很实用,对我启发很大,有很好的参考价值,内容详细。
- 古月氵2023-05-22超赞的资源,感谢资源主分享,大家一起进步!
qq_38220914
- 粉丝: 606
- 资源: 4311
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功