I'm trying to port GRBL 1.1 to the STM32F746 chip. Tell me the solution, thanks.

Committer:
Sergunb
Date:
Mon Sep 04 12:03:42 2017 +0000
Revision:
0:f1834a63f7c1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sergunb 0:f1834a63f7c1 1 /******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
Sergunb 0:f1834a63f7c1 2 * File Name : usb_def.h
Sergunb 0:f1834a63f7c1 3 * Author : MCD Application Team
Sergunb 0:f1834a63f7c1 4 * Version : V3.2.1
Sergunb 0:f1834a63f7c1 5 * Date : 07/05/2010
Sergunb 0:f1834a63f7c1 6 * Description : Definitions related to USB Core
Sergunb 0:f1834a63f7c1 7 ********************************************************************************
Sergunb 0:f1834a63f7c1 8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
Sergunb 0:f1834a63f7c1 9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
Sergunb 0:f1834a63f7c1 10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
Sergunb 0:f1834a63f7c1 11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
Sergunb 0:f1834a63f7c1 12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
Sergunb 0:f1834a63f7c1 13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
Sergunb 0:f1834a63f7c1 14 *******************************************************************************/
Sergunb 0:f1834a63f7c1 15
Sergunb 0:f1834a63f7c1 16 /* Define to prevent recursive inclusion -------------------------------------*/
Sergunb 0:f1834a63f7c1 17 #ifndef __USB_DEF_H
Sergunb 0:f1834a63f7c1 18 #define __USB_DEF_H
Sergunb 0:f1834a63f7c1 19
Sergunb 0:f1834a63f7c1 20 /* Includes ------------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 21 /* Exported types ------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 22 typedef enum _RECIPIENT_TYPE
Sergunb 0:f1834a63f7c1 23 {
Sergunb 0:f1834a63f7c1 24 DEVICE_RECIPIENT, /* Recipient device */
Sergunb 0:f1834a63f7c1 25 INTERFACE_RECIPIENT, /* Recipient interface */
Sergunb 0:f1834a63f7c1 26 ENDPOINT_RECIPIENT, /* Recipient endpoint */
Sergunb 0:f1834a63f7c1 27 OTHER_RECIPIENT
Sergunb 0:f1834a63f7c1 28 } RECIPIENT_TYPE;
Sergunb 0:f1834a63f7c1 29
Sergunb 0:f1834a63f7c1 30
Sergunb 0:f1834a63f7c1 31 typedef enum _STANDARD_REQUESTS
Sergunb 0:f1834a63f7c1 32 {
Sergunb 0:f1834a63f7c1 33 GET_STATUS = 0,
Sergunb 0:f1834a63f7c1 34 CLEAR_FEATURE,
Sergunb 0:f1834a63f7c1 35 RESERVED1,
Sergunb 0:f1834a63f7c1 36 SET_FEATURE,
Sergunb 0:f1834a63f7c1 37 RESERVED2,
Sergunb 0:f1834a63f7c1 38 SET_ADDRESS,
Sergunb 0:f1834a63f7c1 39 GET_DESCRIPTOR,
Sergunb 0:f1834a63f7c1 40 SET_DESCRIPTOR,
Sergunb 0:f1834a63f7c1 41 GET_CONFIGURATION,
Sergunb 0:f1834a63f7c1 42 SET_CONFIGURATION,
Sergunb 0:f1834a63f7c1 43 GET_INTERFACE,
Sergunb 0:f1834a63f7c1 44 SET_INTERFACE,
Sergunb 0:f1834a63f7c1 45 TOTAL_sREQUEST, /* Total number of Standard request */
Sergunb 0:f1834a63f7c1 46 SYNCH_FRAME = 12
Sergunb 0:f1834a63f7c1 47 } STANDARD_REQUESTS;
Sergunb 0:f1834a63f7c1 48
Sergunb 0:f1834a63f7c1 49 /* Definition of "USBwValue" */
Sergunb 0:f1834a63f7c1 50 typedef enum _DESCRIPTOR_TYPE
Sergunb 0:f1834a63f7c1 51 {
Sergunb 0:f1834a63f7c1 52 DEVICE_DESCRIPTOR = 1,
Sergunb 0:f1834a63f7c1 53 CONFIG_DESCRIPTOR,
Sergunb 0:f1834a63f7c1 54 STRING_DESCRIPTOR,
Sergunb 0:f1834a63f7c1 55 INTERFACE_DESCRIPTOR,
Sergunb 0:f1834a63f7c1 56 ENDPOINT_DESCRIPTOR
Sergunb 0:f1834a63f7c1 57 } DESCRIPTOR_TYPE;
Sergunb 0:f1834a63f7c1 58
Sergunb 0:f1834a63f7c1 59 /* Feature selector of a SET_FEATURE or CLEAR_FEATURE */
Sergunb 0:f1834a63f7c1 60 typedef enum _FEATURE_SELECTOR
Sergunb 0:f1834a63f7c1 61 {
Sergunb 0:f1834a63f7c1 62 ENDPOINT_STALL,
Sergunb 0:f1834a63f7c1 63 DEVICE_REMOTE_WAKEUP
Sergunb 0:f1834a63f7c1 64 } FEATURE_SELECTOR;
Sergunb 0:f1834a63f7c1 65
Sergunb 0:f1834a63f7c1 66 /* Exported constants --------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 67 /* Definition of "USBbmRequestType" */
Sergunb 0:f1834a63f7c1 68 #define REQUEST_TYPE 0x60 /* Mask to get request type */
Sergunb 0:f1834a63f7c1 69 #define STANDARD_REQUEST 0x00 /* Standard request */
Sergunb 0:f1834a63f7c1 70 #define CLASS_REQUEST 0x20 /* Class request */
Sergunb 0:f1834a63f7c1 71 #define VENDOR_REQUEST 0x40 /* Vendor request */
Sergunb 0:f1834a63f7c1 72
Sergunb 0:f1834a63f7c1 73 #define RECIPIENT 0x1F /* Mask to get recipient */
Sergunb 0:f1834a63f7c1 74
Sergunb 0:f1834a63f7c1 75 /* Exported macro ------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 76 /* Exported functions ------------------------------------------------------- */
Sergunb 0:f1834a63f7c1 77
Sergunb 0:f1834a63f7c1 78 #endif /* __USB_DEF_H */
Sergunb 0:f1834a63f7c1 79
Sergunb 0:f1834a63f7c1 80 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/