73
OSD3358-SM-RED
– User Guide
Rev. 1.0 9/19/2017
Octavo Systems LLC
Copyright 2017
11.
rc_uart_loopback
Function
: This command tests the UART protocol capabilities of the library by running a
loopback test on UART0 port. UART0_TX and UART0_RX need to be connected for this
test to run.
Options
: None
Results
:
12.
rc_version
Function
: This command returns the version of the peripheral library being run on the
board
Options
: None
Results
:
5.3.2
Using peripheral library to write applications
All the peripheral access supporting libraries are present in the libraries folder. The Makefile will
compile a single shared object robotics_cape.so and install it to /usr/lib. It will also move all the
header files to /usr/include/. To use the .so, it is enough to put in #include <robotics_cape.h>.
6
Cape support
The OSD3358-SM-RED board is capable of supporting all the capes of the Bealgebone Black.
See the BeagleBone Black SRM (
https://github.com/beagleboard/beaglebone-
black/wiki/System-Reference-Manual
) “Cape Board Support” section for details on capes for
Beaglebone Black. The capes can be dynamically loaded/unloaded using device tree overlays.
root@beaglebone:~$ rc_uart_loopback 0
testing UART bus 0
Sending 11 bytes: Hello World
Received 11 bytes: Hello World
debian@beaglebone:~$ rc_version
REDPeripherallib 0.3.4 built on Roboticscape 0.3.4