2019-03-27 06:38:36 +00:00
|
|
|
/*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2018 Ha Thach for Adafruit Industries
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
2018-08-16 11:17:42 +00:00
|
|
|
|
|
|
|
#ifndef USB_DESC_H_
|
|
|
|
#define USB_DESC_H_
|
|
|
|
|
|
|
|
#include "tusb.h"
|
2019-04-12 14:11:55 +00:00
|
|
|
#include "boards.h"
|
2018-08-16 11:17:42 +00:00
|
|
|
|
2019-11-11 08:35:43 +00:00
|
|
|
void usb_desc_init(bool cdc_only);
|
2018-08-16 11:17:42 +00:00
|
|
|
|
2019-04-12 14:11:55 +00:00
|
|
|
#ifndef USB_DESC_VID
|
2019-11-11 08:50:28 +00:00
|
|
|
#define USB_DESC_VID 0x239A
|
2019-04-12 14:11:55 +00:00
|
|
|
#endif
|
2018-08-16 11:17:42 +00:00
|
|
|
|
2019-04-12 14:11:55 +00:00
|
|
|
#ifndef USB_DESC_UF2_PID
|
2019-11-11 08:50:28 +00:00
|
|
|
#define USB_DESC_UF2_PID 0x0029
|
2019-04-12 14:11:55 +00:00
|
|
|
#endif
|
|
|
|
|
2019-04-27 09:40:08 +00:00
|
|
|
#ifndef USB_DESC_CDC_ONLY_PID
|
2019-11-11 08:50:28 +00:00
|
|
|
#define USB_DESC_CDC_ONLY_PID 0x002A
|
2019-04-12 14:11:55 +00:00
|
|
|
#endif
|
2018-08-16 11:17:42 +00:00
|
|
|
|
|
|
|
#endif /* USB_DESC_H_ */
|