bus speeds -- Corrected bus speed configuration - USART: -- Corrected status bit-field handling, to prevent race conditions -- Added RX TimeOut handling - USB Device: Corrected transferred size during transfer - USB Host: -- Added pipe bus error signaling of active pipes on port disconnect ...
static uint8_t USBD_CUSTOM_HID_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx) { uint8_t ret = 0; USBD_CUSTOM_HID_HandleTypeDef *hhid; /* Open EP IN */ USBD_LL_OpenEP(pdev, CUSTOM_HID_EPIN_ADDR, USBD_EP_TYPE_INTR, CUSTOM_HID_EPIN_SIZE); // USB_FS_MAX_PACKET_SIZE /*...
((USBD_CUSTOM_HID_ItfTypeDef *)pdev->pUserData)->Init();/* Prepare Out endpoint to receive 1st packet */USBD_LL_PrepareReceive(pdev, CUSTOM_HID_EPOUT_ADDR, hhid->Report_buf, USBD_CUSTOMHID_OUTREPORT_BUF_SIZE); }returnret; } 这个USBD_LL_OpenEP函数中,有用的只有一句, hal_status ...
#include"stm32f4xx_ll_bus.h" #include"hrtimer.h" unsignedlonglonghrt_global_time; voidhrtimer_init(void) { LL_TIM_InitTypeDefTIM_InitStruct={0}; LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_TIM4); NVIC_SetPriority(TIM4_IRQn,NVIC_EncodePriority(NVIC_GetPriorityGrouping(),0,0)); ...
to abort active transfer if power off was requested). Updated GetDataCount function to give accurate count in DMA mode. Corrected Control function (abort in DMA mode, software controlled slave select in slave mode, TI Frame Format selection, ignore bus speed for slave mode). Corrected Uninitializ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
In some cases HAL_I2C_Mem_Read will finish reading given number of bytes from I2C slave, but will not NAK the last byte. This may cause the slave to pull SDA low if its next byte's MSb is 0, thus freezing the I2C bus. How to reproduce the bug (skip if none) ...
to abort active transfer if power off was requested). Updated GetDataCount function to give accurate count in DMA mode. Corrected Control function (abort in DMA mode, software controlled slave select in slave mode, TI Frame Format selection, ignore bus speed for slave mode). Corrected Uninitializ...