chore: centralize board manufacturer/model/USB identity in hw_defs JSON (#7786)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-09-25 13:46:09 +10:00
committed by GitHub
co-authored by Claude Sonnet 5
parent 598255e1d1
commit 425944bff2
95 changed files with 460 additions and 610 deletions
@@ -0,0 +1,10 @@
//
// WARNING: DO NOT EDIT THIS FILE
// This file has been generated from the target's JSON hardware description
//
#pragma once
#define USB_NAME "{{ identity.manufacturer }} {{ identity.model }}"
#define USB_MANUFACTURER {% for c in identity.usb_manufacturer.ljust(8) %}'{{ c }}'{% if not loop.last %}, {% endif %}{% endfor %} /* 8 bytes */
#define USB_PRODUCT {% for c in identity.usb_product.ljust(8) %}'{{ c }}'{% if not loop.last %}, {% endif %}{% endfor %} /* 8 Bytes */