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:
co-authored by
Claude Sonnet 5
parent
598255e1d1
commit
425944bff2
@@ -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 */
|
||||
Reference in New Issue
Block a user