Skip to main content
January 14, 2023
Solved

Why CRC is enabled in audio player example ?

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
January 14, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
January 14, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..