Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_io.c
/***************************************************************************/
/**
 *
 *  EtaCspPrintViaM3ProcessPrintCredit - processes M3 print credits
 *
 *  @param credit - indicates number of characters M3 prints
 *
 ******************************************************************************/
processes M3 print credits
@param credit - indicates number of characters M3 prints
processes M3 print credits @param credit - indicates number of characters M3 prints
void
EtaCspPrintViaM3ProcessPrintCredit(int credit)
{
    int temp_rdptr;
    temp_rdptr = glob_printbuff_rdptr + credit;
    if(temp_rdptr >= DSP_PRINT_BUFFER_USABLE)
    {
        temp_rdptr = temp_rdptr - DSP_PRINT_BUFFER_USABLE;
    }
    glob_printbuff_rdptr = temp_rdptr;
}
void EtaCspPrintViaM3ProcessPrintCredit ( int credit ) { int temp_rdptr ; temp_rdptr = glob_printbuff_rdptr + credit ; if ( temp_rdptr >= DSP_PRINT_BUFFER_USABLE ) { temp_rdptr = temp_rdptr - DSP_PRINT_BUFFER_USABLE ; } glob_printbuff_rdptr = temp_rdptr ; }
EtaCspPrintViaM3ProcessPrintCredit - processes M3 print credits
  @param credit - indicates number of characters M3 prints
EtaCspPrintViaM3ProcessPrintCredit - processes M3 print credits @param credit - indicates number of characters M3 prints
// Modulo - temp_rdptr = temp_rdptr % (DSP_PRINT_BUFFER_USABLE); // We could use this to increment, but we can do it in one add vs X inc by 1 // for (index0=0; index0 < credit; index0++) // { // glob_printbuff_rdptr = eta_csp_printviam3_inc_indx // (glob_printbuff_rdptr); // }