1. ˵
    USB HID 豸

2. ʹû
    Ӳ̶ӦĿӲƽ̨ 
    壺   N32G4XV-STB V1.1


3. ʹ˵
    ģ÷:ʱӣI/O 
         1. SystemClock144MHz
         2. USBClock: 48MHz
         3. GPIO:KEY1 -- PA4
                 LED1 -- PA4
                 LED2 -- PB4
                 LED3 -- PA5

    DemoĲԲ 
         1. سλУ
         2. ͨ USB  J3 USB ڣʶHID豸;
         3. KEY1 HID豸ͨIN˵㷢Ϣ
         4. PCͨOUT˵豸ݿԿLED1~LED3״̬
             0x01 0x00 LED1
             0x01 0x01 LED1
             0x02 0x00 LED2
             0x02 0x01 LED2
             0x03 0x00 LED3
             0x03 0x01 LED3

4. ע
    

1. Function description
    USB HID device

2. Use environment
    Hardware environment: development hardware platform corresponding to the project 
    Development board:      N32G4XV-STB V1.1

3. Instructions for use
    Describe the configuration method of related modules; for example: clock, I/O, etc. 
        1. SystemClock: 144MHz
        2. USBClock: 48MHz
        3. GPIO:KEY1 -- PA4
                LED1 -- PA4
                LED2 -- PB4
                LED3 -- PA5
    
    Describe the testing steps and phenomena of the Demo

        1. Download the program after compiling and reset it to run;
        2. Connect the J3 USB port via a USB cable, and the computer recognizes the HID device.
        3. When click the button KEY1, the HID device will send a key message through the IN endpoint.
        4. Control the status of LED1 to LED3 by sending data to the device through the OUT endpoint on the PC
           Send 0x01 0x00 LED1 Off
           Send 0x01 0x01 LED1 Light
           Send 0x02 0x00 LED2 off
           Send 0x02 0x01 LED2 Light
           Send 0x03 0x00 LED3 off
           Send 0x03 0x01 LED3 to light up
 
4. Matters needing attention
    None.