-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconfig.h
More file actions
61 lines (48 loc) · 2.04 KB
/
config.h
File metadata and controls
61 lines (48 loc) · 2.04 KB
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
/*
--------------------------------------------------------------------------------
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, ZL4VO/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}
typedef enum { ESPEED_AUTO = 0,
ESPEED_10M = 1,
ESPEED_100M = 2 } espeed_e;
#define MAX_RX_CHANS 16 // must be pow2, see coroutines.h:CTF_CHANNEL
#define MAX_WF_CHANS 16
#define MAX_NRX_BUFS 16 // for RXBUF_SIZE_14CH
#define MAX_NRX_SAMPS 512 // for nch = 3
#define NRX_SAMPS_CHANS(nch) MAX_NRX_SAMPS
#define N_CONN_ADMIN 8 // simultaneous admin connections
#define N_CAMP 4
#define N_QUEUERS 8
#define PROXY_SERVER_HOST "proxy.rx-888.com"
#define PROXY_SERVER_PORT 8073
extern int rx_chans, wf_chans, nrx_bufs, nrx_samps, 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)
#define DX_UPLOAD_MAX_SIZE (2 * M)
typedef struct {
const char *param, *value;
} index_html_params_t;