Provides repository templates supporting the automatic generation of firmware and Bonsai interface code for new Harp devices. Below are simple getting started instructions for maintainers to create a new device using the automatic code generators.
- Install
dotnet - Install the
Harp.Templatespackage.
dotnet new install Harp.Templates
Use the Harp device repository template to create a new project.
dotnet new harpdevice -n <project-name>
- Install Visual Studio Code
- Install the YAML extension.
The device.yml file in the root of the project contains the device metadata. A complete specification of all device registers, including bit masks, group masks, and payload formats needs to be provided.
- Install
dotnet-t4
dotnet tool install -g dotnet-t4
The Generators folder contains all text templates and project files required to generate both the firmware headers and the interface for the device. To run the text templating engine just build the project inside this folder.
dotnet build Generators