kopia lustrzana https://github.com/jgromes/RadioLib
Updated Porting to non Arduino Platforms (markdown)
rodzic
497551e39d
commit
aec2e074d2
|
@ -8,7 +8,12 @@ The `noarduino.h` file has to define all the platform macros shown in [Custom Bu
|
|||
// noarduino.h
|
||||
// forward declaration
|
||||
void wrap_HAL_GPIO_WritePin(uint8_t pin, uint8_t value);
|
||||
#define RADIOLIB_CB_ARGS_DIGITAL_WRITE (void, wrap_HAL_GPIO_WritePin, uint32_t pin, GPIO_PinState value)
|
||||
|
||||
// callback argument macro
|
||||
// the first argument is the return type of the wrapper function
|
||||
// the second argument is the name of the corresponding Arduino function
|
||||
// all other arguments are the arguments of the wrapper function
|
||||
#define RADIOLIB_CB_ARGS_DIGITAL_WRITE (void, digitalWrite, uint32_t pin, GPIO_PinState value)
|
||||
|
||||
// noarduino.c/cpp
|
||||
// now the implementation - pin number also includes the GPIOx port
|
||||
|
|
Ładowanie…
Reference in New Issue