picolibrary-microchip-megaavr0

Usage

Table of Contents

  1. Dependency
    1. Configuration Options
    2. avr-libcpp Configuration Requirements
  2. Development

Dependency

To use picolibrary-microchip-megaavr0 as a dependency, simply add the subdirectory containing the repository to a CMake build, and link with the picolibrary-microchip-megaavr0 static library.

add_subdirectory( picolibrary-microchip-megaavr0 )
target_link_libraries(
    foo
    picolibrary-microchip-megaavr0
)

The picolibrary-microchip-megaavr0 static library does not include ::picolibrary::Microchip::megaAVR0::version(). To use ::picolibrary::Microchip::megaAVR0::version(), link with the picolibrary-microchip-megaavr0-version static library.

target_link_libraries(
    foo
    picolibrary-microchip-megaavr0
    picolibrary-microchip-megaavr0-version
)

Configuration Options

picolibrary-microchip-megaavr0 supports the following project configuration options:

avr-libcpp Configuration Requirements

If PICOLIBRARY_MICROCHIP_MEGAAVR0_USE_PARENT_PROJECT_AVRLIBCPP is ON, avr-libcpp must be configured as follows:

Development

The repository’s Git pre-commit hook script is the simplest way to configure, and build picolibrary-microchip-megaavr0 during development. See the pre-commit script’s help text for usage details.

./git/hooks/pre-commit --help

Additional checks, such as static analysis, are performed by the repository’s GitHub Actions CI workflow.