V125-260722:(暂时发现DPD/FSSI/网页频谱显示都不正常,临时提交)1.合并增加 Web 端 FPGA .mcs 在线升级功能,支持升级进度及错误状态反馈。2.合并优化 FPGA 升级后的恢复流程,实现无需断电的 FPGA 配置、JESD 链路及 RF 热恢复。3.合并重构 ORx 功率、FSSI 和 FWD 计算;4.合并DPD相关优化和调试日志;5.合并IQ 频谱数据接收由 eth1 调整至 eth0,降低对外部网口连接状态的依赖。
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/spi/spidev.h>
|
||||
#include <memory.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <termios.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include "common.h"
|
||||
#include "platform.h"
|
||||
#include "spi0.h"
|
||||
#include "ad9528_config.h"
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
openSpiDev(SPIDEV_AD9528_NODE_NAME);
|
||||
if(ret < 0 ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = initSpiDev();
|
||||
if(ret < 0 ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = ad9528_config();
|
||||
if(ret == 0) {
|
||||
PRINTF_INFO("ad9528 cfg ok.\r\n");
|
||||
} else {
|
||||
PRINTF_INFO("ERROR:ad9528 cfg fail.\r\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user