fix missing name.c for usb-midi definitions on teensy arm platforms

pull/24/head
midilab 2 years ago
parent 69b9467cc1
commit ff9c6a93fa
  1. 19
      examples/TeensyUsbMasterMidiClock/name.c
  2. 19
      examples/TeensyUsbSlaveMidiClock/name.c
  3. 19
      examples/TeensyUsbSlaveMidiClockMonitor/name.c

@ -0,0 +1,19 @@
// To give your project a unique name, this code must be
// placed into a .c file (its own tab). It can not be in
// a .cpp file or your main sketch (the .ino file).
#include "usb_names.h"
// Edit these lines to create your own name. The length must
// match the number of characters in your custom name.
#define MIDI_NAME {'u','c','l','o','c','k','_','1'}
#define MIDI_NAME_LEN 8
// Do not change this part. This exact format is required by USB.
struct usb_string_descriptor_struct usb_string_product_name = {
2 + MIDI_NAME_LEN * 2,
3,
MIDI_NAME
};

@ -0,0 +1,19 @@
// To give your project a unique name, this code must be
// placed into a .c file (its own tab). It can not be in
// a .cpp file or your main sketch (the .ino file).
#include "usb_names.h"
// Edit these lines to create your own name. The length must
// match the number of characters in your custom name.
#define MIDI_NAME {'u','c','l','o','c','k','_','1'}
#define MIDI_NAME_LEN 8
// Do not change this part. This exact format is required by USB.
struct usb_string_descriptor_struct usb_string_product_name = {
2 + MIDI_NAME_LEN * 2,
3,
MIDI_NAME
};

@ -0,0 +1,19 @@
// To give your project a unique name, this code must be
// placed into a .c file (its own tab). It can not be in
// a .cpp file or your main sketch (the .ino file).
#include "usb_names.h"
// Edit these lines to create your own name. The length must
// match the number of characters in your custom name.
#define MIDI_NAME {'u','c','l','o','c','k','_','1'}
#define MIDI_NAME_LEN 8
// Do not change this part. This exact format is required by USB.
struct usb_string_descriptor_struct usb_string_product_name = {
2 + MIDI_NAME_LEN * 2,
3,
MIDI_NAME
};
Loading…
Cancel
Save