|
#define | DIGITAL_IO_SET() HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_SET) |
|
#define | DIGITAL_IO_RESET() HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_RESET) |
|
#define | DIGITAL_IO_TOGGLE() HAL_GPIO_TogglePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN) |
|
Each development board has one dedicated configured digital i/o pin. These macros control the state of that output pin. (Pin PD0) for STM32L476G-Discovery)
#define DIGITAL_IO_RESET |
( |
| ) |
HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_RESET) |
#define DIGITAL_IO_SET |
( |
| ) |
HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_SET) |
#define DIGITAL_IO_TOGGLE |
( |
| ) |
HAL_GPIO_TogglePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN) |