1 Star 0 Fork 0

银河落九天/Beagle_SDR_GPS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.h 2.11 KB
一键复制 编辑 原始数据 按行查看 历史
/*
--------------------------------------------------------------------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
--------------------------------------------------------------------------------
*/
// Copyright (c) 2016 John Seamons, ZL/KF6VO
#pragma once
// these defines are set by the makefile:
// DEBUG
// VERSION_MAJ, VERSION_MIN
// ARCH_*, PLATFORM_*
// LOGGING_HOST, KIWI_UI_LIST, REPO
// {EDATA_DEVEL, EDATA_EMBED}
#define FW_SEL_SDR_RX4_WF4 0
#define FW_SEL_SDR_RX8_WF2 1
#define FW_SEL_SDR_RX3_WF3 2
#define FW_SEL_SDR_RX14_WF0 3
#define MAX_RX_CHANS 16
#define MAX_WF_CHANS 4
#define MAX_NRX_BUFS 16 // for RXBUF_SIZE_14CH
#define MAX_NRX_SAMPS 226 // for nch = 3
#define NRX_SAMPS_CHANS(nch) ((NRX_SPI - NRX_OVHD) / NRX_IQW / nch);
// (((2048-1) - (3+1+1)) / 3 / nch) = 680 / nch
extern int fw_sel, fpga_id, rx_chans, wf_chans, nrx_bufs, nrx_samps, nrx_samps_loop, nrx_samps_rem,
snd_rate, rx_decim;
// INET6_ADDRSTRLEN (46) plus some extra in case ipv6 scope/zone is an issue
// can't be in net.h due to #include recursion problems
#define NET_ADDRSTRLEN 64
#define NET_ADDRSTRLEN_S "64"
#define STATS_INTERVAL_SECS 10
#define PHOTO_UPLOAD_MAX_SIZE (2*M)
typedef struct {
const char *param, *value;
} index_html_params_t;
#include "mongoose.h"
typedef struct {
const char *name;
int color_map;
int port, port_ext;
struct mg_server *server;
} user_iface_t;
extern user_iface_t user_iface[];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sleijun/Beagle_SDR_GPS.git
[email protected]:sleijun/Beagle_SDR_GPS.git
sleijun
Beagle_SDR_GPS
Beagle_SDR_GPS
master

搜索帮助