AnsweredAssumed Answered

Wrong defined HAL_PCDEx_SetConnectionState prototype

Question asked by ln.thierry on Nov 25, 2015
Latest reply on Feb 5, 2016 by Amel N
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 in stm32f3xx_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);

Outcomes