kopia lustrzana https://github.com/jgromes/RadioLib
Updated Porting to non Arduino Platforms (markdown)
rodzic
f9804ac474
commit
dff3971c7a
|
@ -19,7 +19,7 @@ NOTE: If you installed RadioLib as a shared library in the previous step, you wi
|
|||
`#include <RadioLib/RadioLib.h>`
|
||||
|
||||
3. **Provide your hardware abstraction layer to RadioLib**
|
||||
To run on different platforms (e.g., esp-idf for ESP32, stm32hal for STM32, pigpio for Raspberry Pi etc.), RadioLib includes a light abstraction layer class. It's up to the user to add implementation of this abstraction layer - usually this boils down to providing functions that perform GPIO operations, SPI transactions etc. An example for Raspberry Pi using the [lgpio library](https://abyz.me.uk/lg/lgpio.html) can be found here: https://github.com/jgromes/RadioLib/blob/master/examples/NonArduino/Raspberry/PiHal.h
|
||||
To run on different platforms (e.g., esp-idf for ESP32, stm32hal for STM32, pigpio for Raspberry Pi etc.), RadioLib includes a light-weight Hardware Abstraction Layer (HAL) class. HALs for the most commont platforms are provided here: https://github.com/jgromes/RadioLib/tree/master/src/hal. If adding a new platform, it's up to the user to add implementation of this abstraction layer - usually this boils down to providing functions that perform GPIO operations, SPI transactions etc.
|
||||
|
||||
4. **Done!**
|
||||
Congratulations, you have now succesfully ported RadioLib to your platform!
|
Ładowanie…
Reference in New Issue