2022-04-29 02:07 AM
Build Error
Error[Li006]: duplicate definitions for "HAL_SPI_TxCpltCallback";
void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi)
{
HAL_GPIO_WritePin(SPIx_NSS_Port, SPIx_NSS_Pin, GPIO_PIN_SET);
}
I use the same in both files ?
any way ? please help
Solved! Go to Solution.
2022-04-29 02:12 AM
Use one callback only and an if statement in the beginning to find out which hspi is calling.
hth
KnarfB
2022-04-29 02:12 AM
Use one callback only and an if statement in the beginning to find out which hspi is calling.
hth
KnarfB
2022-04-29 02:42 AM
Thanks KnarfB for the fast response. It worked.