Updated Porting to non Arduino Platforms (markdown)

master
Jan Gromeš 2023-04-09 22:39:13 +02:00
rodzic 497551e39d
commit aec2e074d2
1 zmienionych plików z 6 dodań i 1 usunięć

@ -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