|
hal
Hardware Abstraction Layer
|
Implementation for toggling the red LED onboard the stm32f446re development board. More...

Macros | |
| #define | GPIOAEN (1U << 0) |
| #define | PIN5 (1U << 5) |
| #define | LED_PIN (PIN5) |
Functions | |
| hal_status_t | hal_gpio_init () |
| Initialize the module. Must be called only once prior to using toggle. More... | |
| hal_status_t | hal_gpio_toggle_led () |
| Toggle the onboard LED. More... | |
Implementation for toggling the red LED onboard the stm32f446re development board.
Copyright (c) 2025 Cory McKiel. Licensed under the MIT License. See LICENSE file in the project root.
| #define GPIOAEN (1U << 0) |
Bit to enable GPIO port A.
| #define LED_PIN (PIN5) |
The onboard LED is wired to GPIO port A, pin 5.
| #define PIN5 (1U << 5) |
Pin five for GPIO port A.
| hal_status_t hal_gpio_init | ( | ) |
Initialize the module. Must be called only once prior to using toggle.
| hal_status_t hal_gpio_toggle_led | ( | ) |
Toggle the onboard LED.