Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
constants.cxx
Go to the documentation of this file.
1
34
#include "
utils/constants.hxx
"
35
127
DEFAULT_CONST
(nmranet_can_bitrate, 125000);
128
DEFAULT_CONST
(can2_bitrate, 125000);
129
130
DEFAULT_CONST
(main_thread_priority, 0xdefa01);
131
DEFAULT_CONST
(main_thread_stack_size, 2048);
132
DEFAULT_CONST
(executor_max_sleep_msec, 40);
133
DEFAULT_CONST
(executor_select_prescaler, 5);
134
135
DEFAULT_CONST
(can_tx_buffer_size, 16);
136
DEFAULT_CONST
(can_rx_buffer_size, 16);
137
138
DEFAULT_CONST
(serial_tx_buffer_size, 16);
139
DEFAULT_CONST
(serial_rx_buffer_size, 16);
140
141
DEFAULT_CONST
(gc_generate_newlines, 0);
142
143
DEFAULT_CONST
(gridconnect_buffer_size, 65);
144
DEFAULT_CONST
(gridconnect_buffer_delay_usec, 300);
145
148
DEFAULT_CONST
(gridconnect_port_max_incoming_packets, 6);
150
DEFAULT_CONST
(gridconnect_bridge_max_incoming_packets, 1);
152
DEFAULT_CONST
(gridconnect_bridge_max_outgoing_packets, 1);
154
DEFAULT_CONST
(gridconnect_tcp_rcv_buffer_size, 1);
156
DEFAULT_CONST
(gridconnect_tcp_snd_buffer_size, 1);
158
DEFAULT_CONST
(gridconnect_tcp_notsent_lowat_buffer_size, 1);
159
160
DEFAULT_CONST_FALSE
(gridconnect_tcp_use_select);
161
162
// By default read a full TCP packet from the input port in one go.
163
DEFAULT_CONST
(directhub_port_incoming_buffer_size, 1460);
164
// how many 1460-byte packets per port we parse before waiting for output to
165
// drain.
166
DEFAULT_CONST
(directhub_port_max_incoming_packets, 2);
167
168
#ifdef ESP_PLATFORM
170
DEFAULT_CONST
(socket_listener_stack_size, 3072);
172
DEFAULT_CONST
(socket_listener_backlog, 1);
173
#else
175
DEFAULT_CONST
(socket_listener_stack_size, 1000);
177
DEFAULT_CONST
(socket_listener_backlog, 5);
178
#endif
// ESP_PLATFORM
constants.hxx
DEFAULT_CONST
#define DEFAULT_CONST(name, value)
Defines the default value of a constant.
Definition
constants.hxx:77
DEFAULT_CONST_FALSE
#define DEFAULT_CONST_FALSE(name)
Sets the default value of a boolean constant to false.
Definition
constants.hxx:167
src
utils
constants.cxx
Generated on Sun Feb 2 2025 21:18:14 for Open Model Railroad Network (OpenMRN) by
1.9.8