Note

This is the documentation for the latest development branch and may refer to features that are not available in released versions. If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

FPIOA Example

FPIOA Example#

Overview#

This sample dumps the current board-level FPIOA configuration and generates reusable pinmux configuration snippets.

Source file: src/rtsmart/examples/peripheral/fpioa/test_fpioa.c

What It Does#

  • Reads the configuration of IO0..IO63

  • Infers the voltage domain by bank

  • Prints a board_pinmux_cfg array that can be reused in board code

  • Warns when inconsistent bank settings are detected

Key APIs#

  • drv_fpioa_get_pin_cfg()

  • drv_fpioa_get_pin_func_name()

Build and Run#

cd src/rtsmart/examples/peripheral/fpioa
make
./test_fpioa

The sample has no command-line parameters.

Comments list
Comments
Log in