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.

SBUS Example#

Overview#

This sample sends SBUS frames through UART3 and changes channel values dynamically when a button is pressed.

Source file: src/rtsmart/examples/peripheral/sbus/test_sbus.c

Default Mapping#

  • GPIO21 as button input

  • PIN50 -> UART3_TXD

  • PIN51 -> UART3_RXD

Key APIs#

  • drv_fpioa_set_pin_func()

  • drv_gpio_inst_create() / drv_gpio_value_get()

  • sbus_create() / sbus_destroy()

  • sbus_set_channel() / sbus_send_frame()

Build and Run#

cd src/rtsmart/examples/peripheral/sbus
make
./test_sbus

The sample has no command-line parameters.

Comments list
Comments
Log in