LED Part Drivers GPIO API Documentation ¶
This page documents the API of the LED Part Drivers GPIO.
An overview of the driver is also available here: main_doc .
Constants and macros ¶
Defines
-
led_on
(
inst
)
HAL_GPIO_WritePin(inst##_GPIO_PORT,
inst##_PIN,
inst##_ACTIVE_STATE)
¶
-
As opposed to other part drivers (including other LED drivers), there is no
led_init()function. The reasoning is that the HAL GPIO initialization already covers all the required settings; cf. `init_state` in the `hal_gpio_config_t` structure.
-
led_off
(
inst
)
HAL_GPIO_WritePin(inst##_GPIO_PORT,
inst##_PIN,
inst##_INACTIVE_STATE)
¶
-
led_toggle
(
inst
)
HAL_GPIO_TogglePin(inst##_GPIO_PORT,
inst##_PIN)
¶