Skip to content

Instantly share code, notes, and snippets.

@electronut
Created August 18, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electronut/2274900e83f8c38c69b5b4a26e63cb74 to your computer and use it in GitHub Desktop.
Save electronut/2274900e83f8c38c69b5b4a26e63cb74 to your computer and use it in GitHub Desktop.
I2S data handler
// This is the I2S data handler - all data exchange related to the I2S transfers
// is done here.
static void data_handler(uint32_t const * p_data_received,
uint32_t * p_data_to_send,
uint16_t number_of_words)
{
// Non-NULL value in 'p_data_to_send' indicates that the driver needs
// a new portion of data to send.
if (p_data_to_send != NULL)
{
// do nothing - buffer is updated elsewhere
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment