4.1 Main Loop Adaptation
The Main Loop in Flash has to be adapted to react on the FEC control
register:
{…}
#include "rf/rf_fec_flash.h"
{…}
void main()
{
{…}
for(;;)
{
{…}
if(g_fecCr.bfSE != 0)
{
ATA_fecEncryptSramBuffer_flash_C();
}
if(g_fecCr.bfSD != 0)
{
ATA_fecDecryptRxBuffer_flash_C();
}
{…}
}
}