board_support/fmc150/firmware/fmc150.c
// user can redefine this function if needed for custom error behavior
user can redefine this function if needed for custom error behavior
user can redefine this function if needed for custom error behavior
bool __attribute__((weak)) errorHook( t_fmc150Error errValue ){
    bool continueRunning = false;
    switch( errValue ){
        case RET_UNKNOWN:                       continueRunning=true; break;
        case RET_OK:          print_str("OK "); continueRunning=true; break;
        case RET_ERR_NO_FMC:  print_str("FMC150 not present ");       break;
        case RET_ERR_SPI:     print_str("spi error ");                break;
        case RET_ERR_ADC_IDEL:print_str("idelay error ");             break;
        case RET_ERR_DAC_TP:  print_str("DAC test pattern invalid "); break;
        case RET_ERR_DAC_CLK: print_str("DAC clk alarm!");            break;
        case RET_ERR_DAC_FIFO:print_str("DAC FIFO alarm!");           break;
        case RET_ERR_DAC_UNLOCKED: print_str("DAC MMCM unlocked! ");  break;
        default:
        case RET_ERR:
            print_str("general error (");
            print_dec( errValue );
            print_str(") ");
            break;
    }
    return continueRunning;
}
bool __attribute__ ( ( weak ) ) errorHook ( t_fmc150Error errValue ) { bool continueRunning = false ; switch ( errValue ) { case RET_UNKNOWN : continueRunning = true ; break ; case RET_OK : print_str ( " " ) ; continueRunning = true ; break ; case RET_ERR_NO_FMC : print_str ( " " ) ; break ; case RET_ERR_SPI : print_str ( " " ) ; break ; case RET_ERR_ADC_IDEL : print_str ( " " ) ; break ; case RET_ERR_DAC_TP : print_str ( " " ) ; break ; case RET_ERR_DAC_CLK : print_str ( " " ) ; break ; case RET_ERR_DAC_FIFO : print_str ( " " ) ; break ; case RET_ERR_DAC_UNLOCKED : print_str ( " " ) ; break ; default : case RET_ERR : print_str ( " " ) ; print_dec ( errValue ) ; print_str ( " " ) ; break ; } return continueRunning ; }
user can redefine this function if needed for custom error behavior
user can redefine this function if needed for custom error behavior