src/occ_gpe0/firdata/fir_data_collect.c
/*
 * Function Specification
 *
 * Name: fir_data_collect
 *
 * Description: Collects FIR data on checkstop.
 *
 * End Function Specification
 */
Function Specification
Name: fir_data_collect

Collects FIR data on checkstop.

End Function Specification
Function Specification Name : fir_data_collect Collects FIR data on checkstop . End Function Specification
void fir_data_collect(void)
{
    int32_t l_rc = 0;
    uint8_t *l_hBuf = (uint8_t*) G_gpe_shared_data->fir_params_buffer_ptr;
    uint32_t l_hBufSize = FIR_PARMS_SECTION_SIZE;
    uint8_t *l_pBuf = (uint8_t*) G_gpe_shared_data->fir_heap_buffer_ptr;
    uint32_t l_pBufSize = FIR_HEAP_SECTION_SIZE;
    busy_wait(2000000);  
    l_rc = FirData_captureCsFirData(l_hBuf,
                                    l_hBufSize,
                                    l_pBuf,
                                    l_pBufSize);
    TRAC_IMP("Checkstop FIR data capture completed with rc=%d", l_rc);
}
void fir_data_collect ( void ) { int32_t l_rc = 0 ; uint8_t * l_hBuf = ( uint8_t * ) G_gpe_shared_data -> fir_params_buffer_ptr ; uint32_t l_hBufSize = FIR_PARMS_SECTION_SIZE ; uint8_t * l_pBuf = ( uint8_t * ) G_gpe_shared_data -> fir_heap_buffer_ptr ; uint32_t l_pBufSize = FIR_HEAP_SECTION_SIZE ; busy_wait ( 2000000 ) ; l_rc = FirData_captureCsFirData ( l_hBuf , l_hBufSize , l_pBuf , l_pBufSize ) ; TRAC_IMP ( " " , l_rc ) ; }
Function Specification
 Name: fir_data_collect
Function Specification Name : fir_data_collect
// Homer data section and size // PNOR working buffer in SRAM and size // wait two seconds // Trace the rc only, error logs cannot be collected in this state