I2c receive with dma
hi I looked for a tutorial on dma receive i2c but I didn't find it, I
tried with dma receive uart and it works perfectly:
int main(void)
{
HAL_Init();
MX_GPIO_Init();
MX_DMA_Init();
MX_USART2_UART_Init();
MX_USART6_UART_Init();
/* USER CODE BEGIN 2 */
HAL_UART_Receive_DMA(&huart6, (uint8_t *)rxBuf, 25);
while (1)
{
}
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
HAL_UART_Receive_DMA(&huart6, (uint8_t *)rxBuf, 25);
}
could I have an example like this with dma i2c with the callbak function?
TANKS