libhal device library for the series of the RMD smart motors from MyActuator.
Take a look at the
include/libhal-rmd
directory.
To see how each driver is used see the
demos/
directory.
Following the 🚀 Getting Started instructions.
The libhal-lpc40
profiles used for demos. To install them use the following
commands.
conan config install -tf profiles -sf conan/profiles/v1 https://github.com/libhal/arm-gnu-toolchain.git
conan config install -sf conan/profiles/v2 -tf profiles https://github.com/libhal/libhal-lpc40.git
To build demos, start at the root of the repo and execute the following command:
conan build demos -pr lpc4078 -pr arm-gcc-12.3
or for the lpc4074
conan build demos -pr lpc4074 -pr arm-gcc-12.3
- Locate the CANTD (CAN Transmit Data) and CANRD (Can Receive Data) pins on your microcontroller port.
- Connect CANTD and CANRD lines to a CAN transceiver.
- Connect CAN transceiver's CANL and CANH lines and connect them to an motor's CANL and CANH lines.
- Supply adequate power to the CAN transceiver and the smart motor.
Add the following to your requirements()
method:
def requirements(self):
self.requires("libhal-rmd/[^5.0.0]")
If you are using CMake make sure to first find the package then link it to your binary.
# Find & load package
find_package(libhal-rmd REQUIRED CONFIG)
# Link library to your binary
target_link_libraries(my_binary.elf PRIVATE libhal::rmd)
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.