Create release.yml
[betaflight.git] / src / main / vcp / usb_conf.h
blobc0c17673ff0df754453ce1a920be4f865555e25e
1 /**
2 ******************************************************************************
3 * @file usb_conf.h
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief Virtual COM Port Demo configuration header
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_CONF_H
30 #define __USB_CONF_H
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 /* Exported constants --------------------------------------------------------*/
35 /* Exported macro ------------------------------------------------------------*/
36 /* Exported functions ------------------------------------------------------- */
37 /* External variables --------------------------------------------------------*/
39 /*-------------------------------------------------------------*/
40 /* EP_NUM */
41 /* defines how many endpoints are used by the device */
42 /*-------------------------------------------------------------*/
44 #define EP_NUM (4)
46 /*-------------------------------------------------------------*/
47 /* -------------- Buffer Description Table -----------------*/
48 /*-------------------------------------------------------------*/
49 /* buffer table base address */
50 /* buffer table base address */
51 #define BTABLE_ADDRESS (0x00)
53 /* EP0 */
54 /* rx/tx buffer base address */
55 #define ENDP0_RXADDR (0x40)
56 #define ENDP0_TXADDR (0x80)
58 /* EP1 */
59 /* tx buffer base address */
60 #define ENDP1_TXADDR (0xC0)
61 #define ENDP2_TXADDR (0x100)
62 #define ENDP3_RXADDR (0x110)
64 /*-------------------------------------------------------------*/
65 /* ------------------- ISTR events -------------------------*/
66 /*-------------------------------------------------------------*/
67 /* IMR_MSK */
68 /* mask defining which events has to be handled */
69 /* by the device application software */
70 // #define IMR_MSK (CNTR_CTRM | CNTR_WKUPM | CNTR_SUSPM | CNTR_ERRM | CNTR_SOFM | CNTR_ESOFM | CNTR_RESETM )
71 // Disable Suspend/Resume response completely
72 // #define IMR_MSK (CNTR_CTRM | CNTR_WKUPM | CNTR_ERRM | CNTR_SOFM | CNTR_RESETM )
73 // Disable Error interrupt which wasn't really used anyway
74 #define IMR_MSK (CNTR_CTRM | CNTR_WKUPM | CNTR_SOFM | CNTR_RESETM )
76 /*#define CTR_CALLBACK*/
77 /*#define DOVR_CALLBACK*/
78 /*#define ERR_CALLBACK*/
79 /*#define WKUP_CALLBACK*/
80 /*#define SUSP_CALLBACK*/
81 /*#define RESET_CALLBACK*/
82 /*#define SOF_CALLBACK*/
83 /*#define ESOF_CALLBACK*/
84 /* CTR service routines */
85 /* associated to defined endpoints */
86 /*#define EP1_IN_Callback NOP_Process*/
87 #define EP2_IN_Callback NOP_Process
88 #define EP3_IN_Callback NOP_Process
89 #define EP4_IN_Callback NOP_Process
90 #define EP5_IN_Callback NOP_Process
91 #define EP6_IN_Callback NOP_Process
92 #define EP7_IN_Callback NOP_Process
94 #define EP1_OUT_Callback NOP_Process
95 #define EP2_OUT_Callback NOP_Process
96 /*#define EP3_OUT_Callback NOP_Process*/
97 #define EP4_OUT_Callback NOP_Process
98 #define EP5_OUT_Callback NOP_Process
99 #define EP6_OUT_Callback NOP_Process
100 #define EP7_OUT_Callback NOP_Process
102 #endif /* __USB_CONF_H */
104 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/