cancel
Showing results for 
Search instead for 
Did you mean: 

Why CRC is enabled in audio player example ?

NAgha.1
Associate II

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 */

1 ACCEPTED SOLUTION

Accepted Solutions

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..