Skip to content

libhal/libhal-__device__

This branch is 17 commits ahead of libhal-google/libhal-__device__:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8816bd Β· Aug 17, 2024

History

72 Commits
Aug 6, 2024
Jan 30, 2023
Aug 17, 2024
Mar 4, 2024
Jan 18, 2024
Aug 6, 2024
Aug 13, 2024
Jun 29, 2024
Mar 22, 2024
Mar 23, 2024
Jul 29, 2024
Mar 7, 2024
Jan 18, 2024
Jan 18, 2024
Mar 4, 2021
Jul 29, 2024
Aug 6, 2024

Repository files navigation

libhal-device

βœ… Checks GitHub stars GitHub forks GitHub issues

libhal compatible device library for the device family of devices.

πŸ—οΈ Building Demos

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

or for the stm32f103c8

conan build demos -pr stm32f103c8 -pr arm-gcc-12.3

πŸ“¦ Building The Library Package Demos

To build demos, start at the root of the repo and execute the following command:

conan create . -pr lpc4078 -pr arm-gcc-12.3 --version=latest

To compile the package for the stm32f103c8 or lpc4074, simply replace the lpc4078 profile with the appropriate profile name. For example:

conan create . -pr stm32f103c8 -pr arm-gcc-12.3 --version=latest

Note

If you are developing the code, and simply need to test that it builds and that tests pass, use conan build . vs conan create .. This will build the package locally in the current directory. You'll find the contents in the build/ directory at the root of the repo. Now links will point to the code in the repo and NOT the conan package directory.

πŸ“‹ Adding libhal-__device__ to your project

Add the following to your requirements() method within your application or library's conanfile.py:

    def requirements(self):
        self.requires("libhal-__device__/[^1.0.0]")

Replace version 1.0.0 with the desired version of the library.

Assuming you are using CMake, you'll need to find and link the package to your executable:

find_package(libhal-__device__ REQUIRED CONFIG)
target_link_libraries(app.elf PRIVATE libhal::__device__)

Replace app.elf with the name of your executable.

The available headers for your app or library will exist in the include/libhal-__device__/ directory.

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

About

Template repo for general libhal libraries

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages

  • C++ 47.9%
  • Python 29.9%
  • CMake 22.2%