firmware/greatfet_usb/rhododendron/configuration.c
int initialize_rhododendron(void)
{
	int rc;

	// Start our clock output to the PHY.
	set_up_clock_output();

	// Boot up the PHY.
	rc = boot_up_phy();
	if (rc) {
		return rc;
	}

	// Configure our SGPIO, but don't run anything yet.
	// This ensures the pins have a known state before the PHY starts up (hiZ).
	rc = sgpio_set_up_functions(&ulpi_register_mode);
	if (rc) {
		return rc;
	}

	// Sanity check the environment.
	rc = sanity_check_environment();
	if (rc) {
		return rc;
	}

	return 0;
}
/**
 * Initializes a connected Rhododendron board, preparing things for analysis.
 *
 * @return 0 on success, or an error code if the board could not be brought up
 */
Initializes a connected Rhododendron board, preparing things for analysis.
@return 0 on success, or an error code if the board could not be brought up
Initializes a connected Rhododendron board preparing things for analysis . @return 0 on success or an error code if the board could not be brought up
int initialize_rhododendron(void)
{
	int rc;
	set_up_clock_output();
	rc = boot_up_phy();
	if (rc) {
		return rc;
	}
	rc = sgpio_set_up_functions(&ulpi_register_mode);
	if (rc) {
		return rc;
	}
	rc = sanity_check_environment();
	if (rc) {
		return rc;
	}
	return 0;
}
int initialize_rhododendron ( void ) { int rc ; set_up_clock_output ( ) ; rc = boot_up_phy ( ) ; if ( rc ) { return rc ; } rc = sgpio_set_up_functions ( & ulpi_register_mode ) ; if ( rc ) { return rc ; } rc = sanity_check_environment ( ) ; if ( rc ) { return rc ; } return 0 ; }
Initializes a connected Rhododendron board, preparing things for analysis.
Initializes a connected Rhododendron board preparing things for analysis .
// Start our clock output to the PHY. // Boot up the PHY. // Configure our SGPIO, but don't run anything yet. // This ensures the pins have a known state before the PHY starts up (hiZ). // Sanity check the environment.