forked from jks-prv/Beagle_SDR_GPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
67 lines (52 loc) · 2.02 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
--------------------------------------------------------------------------------
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_4RX_4WF 0
#define FW_SEL_SDR_8RX_2WF 1
#define MAX_RX_CHANS 8
#define MAX_WF_CHANS 4
#define MAX_NRX_BUFS 8
#define MAX_NRX_SAMPS 170
extern int fw_sel, fpga_id, rx_chans, wf_chans, nrx_bufs, nrx_samps, nrx_samps_loop, nrx_samps_rem;
// backup values only if dig lookup fails
#define KIWISDR_COM_PUBLIC_IP "50.116.2.70"
#define SDR_HU_PUBLIC_IP "167.99.214.222"
// 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 N_EXT 32 // max # of different extensions
#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[];