Question
Wrong defined HAL_PCDEx_SetConnectionState prototype
Posted on November 25, 2015 at 16:32
Hi, I try to use the new STM32F3xx_HAL_Driver for USB stack.
And my function HAL_PCDEx_SetConnectionState in my ''hal msp module'' is never called. So, I notice that the prototype of this function is not correctly defined instm32f3xx_hal_pdc_ex.h
(line 124) __weak void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state); The propotype shoud be defined without ''__weak'' statement as below : void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state); #hal_pcdex_setconnectionstate