瀏覽代碼

Fixing pjrc bug affecting Mac OSX CDC driver

- Also updating usbMuxUart header with most recent keyboard defines
simple
Jacob Alexander 9 年之前
父節點
當前提交
e251a8be50
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 1
    1
      Output/pjrcUSB/arm/usb_desc.c
  2. 4
    2
      Output/usbMuxUart/output_com.h

+ 1
- 1
Output/pjrcUSB/arm/usb_desc.c 查看文件

0x24, // bDescriptorType 0x24, // bDescriptorType
0x01, // bDescriptorSubtype 0x01, // bDescriptorSubtype
0x01, // bmCapabilities 0x01, // bmCapabilities
1, // bDataInterface
CDC_DATA_INTERFACE, // bDataInterface
// - 4 bytes - // - 4 bytes -
// Abstract Control Management Functional Descriptor, CDC Spec 5.2.3.3, Table 28 // Abstract Control Management Functional Descriptor, CDC Spec 5.2.3.3, Table 28
4, // bFunctionLength 4, // bFunctionLength

+ 4
- 2
Output/usbMuxUart/output_com.h 查看文件

USBKeyChangeState_Modifiers = 0x01, USBKeyChangeState_Modifiers = 0x01,
USBKeyChangeState_MainKeys = 0x02, USBKeyChangeState_MainKeys = 0x02,
USBKeyChangeState_SecondaryKeys = 0x04, USBKeyChangeState_SecondaryKeys = 0x04,
USBKeyChangeState_System = 0x08,
USBKeyChangeState_Consumer = 0x10,
USBKeyChangeState_TertiaryKeys = 0x08,
USBKeyChangeState_System = 0x10,
USBKeyChangeState_Consumer = 0x20,
USBKeyChangeState_All = 0x3F,
} USBKeyChangeState; } USBKeyChangeState;