); // 等待PHY自动协商完成(假设有超时机制) uint32_t start_time = get_system_time(); // 获取系统时间 while (!phy_autonegotiation_done()) { if (get_system_time() - start_time > MAX_NEGOTIATION_TIME) { // 超时处理 log_error("PHY autonegotiation timeout."); return HAL_TIMEOUT...