Skip to main content
Visitor II
January 14, 2023
Solved

Why CRC is enabled in audio player example ?

  • January 14, 2023
  • 1 reply
  • 1156 views

why you have enabled crc for mp3 player in your examples ?

What is its purpose?

uint32_t Mp3Process_DecoderInit(uint8_t* pHeader,
 fnReadCallback_TypeDef* pReadCallback,
 fnSetPositionCallback_TypeDef* pSetPosCallback)
{
 __IO uint16_t time_out = 1153;
 uint8_t tmpBuffer[10];
 uint8_t nb_frame = 0;
 
 uint32_t i;
 
 /* Enable the CRC */
#ifdef STM32F10X_CL
 RCC_AHBPeriphClockCmd( RCC_AHBPeriph_CRC, ENABLE);
#else
 RCC->AHB1ENR |= RCC_AHB1ENR_CRCEN;
#endif /* STM32F10X_CL */

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    To ensure that the library is being used on STM32 hardware, and not TI, NXP, etc​

    1 reply

    Graduate II
    January 14, 2023

    To ensure that the library is being used on STM32 hardware, and not TI, NXP, etc​