kopia lustrzana https://github.com/conorpp/u2f-zero
49 wiersze
1.6 KiB
C
49 wiersze
1.6 KiB
C
|
/*******************************************************************************
|
||
|
* @file descriptors.h
|
||
|
* @brief USB descriptors header file.
|
||
|
*******************************************************************************/
|
||
|
|
||
|
//=============================================================================
|
||
|
// inc/descriptors.h: generated by Hardware Configurator
|
||
|
//
|
||
|
// This file will be regenerated when saving a document. leave the sections
|
||
|
// inside the "$[...]" comment tags alone or they will be overwritten!
|
||
|
//=============================================================================
|
||
|
#ifndef __SILICON_LABS_DESCRIPTORS_H
|
||
|
#define __SILICON_LABS_DESCRIPTORS_H
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Includes
|
||
|
//-----------------------------------------------------------------------------
|
||
|
#include <si_toolchain.h>
|
||
|
#include <endian.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <efm8_usb.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
// $[Vendor ID]
|
||
|
#define USB_VENDOR_ID htole16(0x10c4)
|
||
|
// [Vendor ID]$
|
||
|
|
||
|
// $[Product ID]
|
||
|
#define USB_PRODUCT_ID htole16(0x8acf)
|
||
|
// [Product ID]$
|
||
|
|
||
|
#define HID_PACKET_SIZE 64
|
||
|
|
||
|
extern SI_SEGMENT_VARIABLE(ReportDescriptor0[34], const uint8_t, SI_SEG_CODE);
|
||
|
|
||
|
extern SI_SEGMENT_VARIABLE(deviceDesc[], const USB_DeviceDescriptor_TypeDef, SI_SEG_CODE);
|
||
|
extern SI_SEGMENT_VARIABLE(configDesc[], const uint8_t, SI_SEG_CODE);
|
||
|
extern SI_SEGMENT_VARIABLE(initstruct, const USBD_Init_TypeDef, SI_SEG_CODE);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif // __SILICON_LABS_DESCRIPTORS_H
|