board_support/fmc150/firmware/fmc150.c
// Toggle reset pins of all chips, set control pins to default values
Toggle reset pins of all chips, set control pins to default values
Toggle reset pins of all chips set control pins to default values
static t_fmc150Error reset_fmc150( void ) {
    print_str("reset_fmc150()            ");
    if (GET_SFR1(BASE_FMC150_SFR,0,PIN_PRSNT_M2C_L)) return RET_ERR_NO_FMC;
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_CDCE72010_NSS, 1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_ADS62P49_NSS, 1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_DAC3283_NSS, 1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_AMC7823_NSS, 1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_CDCE72010_NRST, 0 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_AMC7823_NRST,   0 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_ADS62P49_RST,   1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_CDCE72010_NRST, 1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_AMC7823_NRST,   1 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_ADS62P49_RST,   0 );
    SET_SFR1( BASE_FMC150_SFR, 0, PIN_FMC150_PG_C2M, 1 );
    CDCE72010_POWER_EN(0);
    CDCE72010_REF_EN(0);
    DAC3283_TXENABLE(0);
    return RET_OK;
}
static t_fmc150Error reset_fmc150 ( void ) { print_str ( " " ) ; if ( GET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_PRSNT_M2C_L ) ) return RET_ERR_NO_FMC ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_CDCE72010_NSS , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_ADS62P49_NSS , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_DAC3283_NSS , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_AMC7823_NSS , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_CDCE72010_NRST , 0 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_AMC7823_NRST , 0 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_ADS62P49_RST , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_CDCE72010_NRST , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_AMC7823_NRST , 1 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_ADS62P49_RST , 0 ) ; SET_SFR1 ( BASE_FMC150_SFR , 0 , PIN_FMC150_PG_C2M , 1 ) ; CDCE72010_POWER_EN ( 0 ) ; CDCE72010_REF_EN ( 0 ) ; DAC3283_TXENABLE ( 0 ) ; return RET_OK ; }
Toggle reset pins of all chips, set control pins to default values
Toggle reset pins of all chips set control pins to default values
// FMC present pin is active low // Deselect all SPI chips // Reset chips // Come out of reset // Set power good to module