nRF24 / RF24

OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
https://nrf24.github.io/RF24
GNU General Public License v2.0
2.23k stars 1.02k forks source link

Bare AVR support [Question] #582

Closed bitomaxsp closed 4 years ago

bitomaxsp commented 4 years ago

Hi. I am working on my project. I use bare AVR mcu's. Is there support for bare AVR (non arduino)? If not, is it planned? I can probably come up with some reasonable solution.

TMRh20 commented 4 years ago

The support for non-Arduino AVRs is limited to a portability “template”.

No plans to expand support by me, but we will accept pull requests to do so.

Users mainly need to provide for GPIO (digitalWrite) functions, timer functions (delay, millis), and for SPI functionality. Also some progmem stuff, etc.

A good example that would apply here is the ATXMEGA D3, see https://github.com/nRF24/RF24/tree/master/utility/ATXMegaD3

There is also a general compatibility section in the docs. http://tmrh20.github.io/RF24/Portability.html

On Mar 20, 2020, at 04:01, Dmitry notifications@github.com wrote:

 Hi. I am working on my project. I use bare AVR mcu's. Is there support for bare AVR (non arduino)? If not, is it planned? I can probably come up with some reasonable solution.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Avamander commented 4 years ago

Supporting "bare AVR" would still require a HAL because even AVR MCUs vary a lot, megaAVR is quite different for example. One has to simply provide the required Arduino HAL functions if you want to use the library on an Arduino-unsupported platform.

bitomaxsp commented 4 years ago

Thank you for all replies. We can close this issue unless you think its valuable