Module bsp

Module bsp 

Source
Expand description

Backward-compatible BSP module — delegates to board, gpio, led modules.

Enums§

GpioIrqMode
GPIO interrupt trigger mode (BSP re-export of gpio::GpioIrqMode).

Functions§

board_init
Initialize the board support package.
gpio_get
Read a GPIO pin input value. Returns 0 (low) or 1 (high) on success.
gpio_irq_disable
Disable a registered GPIO interrupt without removing the registration.
gpio_irq_enable
Enable a previously registered GPIO interrupt.
gpio_irq_register
Register a GPIO interrupt callback.
gpio_set
Set a GPIO pin’s output level (value: 0 = low, non-zero = high).
led_set
Set the state of an LED.
led_toggle
Toggle the state of an LED.