freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于stm32的usb簡(jiǎn)易鼠標(biāo)畢業(yè)設(shè)計(jì)(編輯修改稿)

2025-07-21 16:13 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 f (JoyState() != 0) { Joystick_Send(JoyState())。 } } }}/****************************************************************** Function Name : Delay* Description : Delay Time* Input : nCount: Delay Time* Output : None* Return : None* Attention : None*****************************************************************/void Delay (uint32_t nCount){ for(。 nCount != 0。 nCount) { }}/****************************************************************** Function Name : GPIO_Configuration* Description : Configure GPIO Pin* Input : None* Output : None* Return : None* Attention : None*****************************************************************/void GPIO_Configuration(void){ GPIO_InitTypeDef GPIO_InitStructure。 RCC_APB2PeriphClockCmd( RCC_APB2Periph_GPIOB , ENABLE)。 /** * LED1 PB15 , LED2 PB14 , LED3 PB13 , LED4 PB12 */ = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15。 = GPIO_Speed_50MHz。 = GPIO_Mode_Out_PP。 GPIO_Init(GPIOB, amp。GPIO_InitStructure)。} ifdef USE_FULL_ASSERT/** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */void assert_failed(uint8_t* file, uint32_t line){ /* User can add his own implementation to report the file name and line number, ex: printf(Wrong parameters value: file %s on line %d\r\n, file, line) */ /* Infinite loop */ while (1) { }}endif/*****************************************************************END FILE*****************************************************************/附錄B /********************************************************************* * File Name : * Author : fakor * Version : * Date : 05/21/2015 * Description : Descriptors for Joystick Mouse Demo*********************************************************************** THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.*********************************************************************//* Includes */include include /* Private typedef *//* Private define *//* Private macro *//* Private variables *//* Extern variables *//* Private function prototypes *//* Private functions *//*******************USB Standard Device Descriptor************************************** 標(biāo)準(zhǔn)設(shè)備描述符***********************/const uint8_t Joystick_DeviceDescriptor[JOYSTICK_SIZ_DEVICE_DESC] = { 0x12, /*bLength 描述符長(zhǎng)度*/USB_DEVICE_DESCRIPTOR_TYPE, /*bDescriptorType描述符類型(設(shè)備描述符 為0x01)*/ 0x00, /*bcdUSB USB協(xié)議版本*/ 0x02, 0x00, /*bDeviceClass類代碼*/ 0x00, /*bDeviceSubClass子類代碼*/ 0x00, /*bDeviceProtocol設(shè)備使用的協(xié)議*/ 0x40, /*bMaxPacketSize 64端點(diǎn)0最大包長(zhǎng)*/ 0x83, /*idVendor (0x0483)廠商ID*/ 0x04, 0x10, /*idProduct = 0x5710產(chǎn)品ID*/ 0x57, 0x00, /*bcdDevice rel. */ 0x02, 1, /*Index of string descriptor describing Manufacturer描述廠商的字符串的索引 */ 2, /*Index of string descriptor describing product描述產(chǎn)品的字符串的索引*/3, /*Index of string descriptor describing the device serial number產(chǎn)品序列號(hào)字 符串的索引 */ 0x01 /*bNumConfigurations可能的配置數(shù)*/ }。 /******************** Joystick_DeviceDescriptor *****************//***************** USB Configuration Descriptor***********************************************配置描述符 ****************************//* All Descriptors (Configuration配置, Interface接口, Endpoint端點(diǎn), Class類, Vendor廠商 */const uint8_t Joystick_ConfigDescriptor[JOYSTICK_SIZ_CONFIG_DESC] = { 0x09, /* bLength: Configuation Descriptor size */ USB_CONFIGURATION_DESCRIPTOR_TYPE, /* bDescriptorType: Configuration */ JOYSTICK_SIZ_CONFIG_DESC, /* wTotalLength: Bytes returned */ 0x00, 0x01, /*bNumInterfaces: 1 interface接口數(shù)*/ 0x01, /*bConfigurationValue: Configuration value配置*/ 0x00, /*iConfiguration: Index of string descriptor describing the configuration字符串索引號(hào)*/ 0xE0, /*bmAttributes: bus powered總線供電 */0x32, /*MaxPower 100 mA: this current is used for detecting Vbus檢測(cè)電源*/ /********Descriptor of Joystick Mouse interface 接口**************/ /* 09 */ 0x09, /*bLength: Interface Descriptor size*/USB_INTERFACE_DESCRIPTOR_TYPE,/*bDescriptorType: Interface descriptor type*/
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1