Skip to content

Provides project templates and automatic generation of firmware and Bonsai interface code for new Harp devices.

License

Notifications You must be signed in to change notification settings

harp-tech/reflex-generator

Repository files navigation

reflex-generator

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.

Creating a new device project

Prerequisites

  1. Install dotnet
  2. Install the Harp.Templates package.
dotnet new install Harp.Templates

Use the Harp device repository template to create a new project.

dotnet new harpdevice -n <project-name>

Editing device metadata

Prerequisites

  1. Install Visual Studio Code
  2. 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.

Generating interface and firmware

Prerequisites

  1. 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

About

Provides project templates and automatic generation of firmware and Bonsai interface code for new Harp devices.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages