chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

Added CDC/ACM Serial Number template facility #307

Closed majenkotech closed 7 years ago

majenkotech commented 8 years ago

You can now specify a "template" in a board definition for the CDC/ACM serial number. It must be an array of exactly 14 characters and any character that is a * is replaced with the auto-generated value from the standard serial number generation system. For instance one I am using is defined as (in Board_Defs.h):

#define CDCACM_SER_TEMPLATE 'P','K','R','L','P','R','T','0','0','1','*','*','*','*'

It in effect overrides all bar the last 4 digits (USERID) of the auto-generated serial number with custom values.

chipkitbot commented 8 years ago

The build was successful, and can be seen at http://chipkitjenkins.wayneandlayne.com/job/chipKIT-core%20PR%20Builder/188/.