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
// SPDX-FileCopyrightText: 2026 Roman Valls Guimera <brainstorm@nopcode.org>
// SPDX-FileCopyrightText: 2026 Julio Beltran Ortega <jubeormk1@gmail.com>
// SPDX-FileCopyrightText: 2026 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2026 Gabriel Ku Wei Bin <gabriel.ku@fsfe.org>
// SPDX-FileCopyrightText: 2026 Anthony Tambasco <anthony.tambasco@fastmail.com>
// SPDX-FileCopyrightText: 2026 Marko Malenic <mmalenic1@gmail.com>
//
// SPDX-License-Identifier: GPL-3.0-or-later
//! Compile-time constants: default IP, `WiFi` character set, buffer sizes.
//!
//! The heap and buffer sizes are build-time config values declared in this crate's
//! `build.rs` via `esp-config`. They can be overridden with `SSH_STAMP_CONFIG_*`
//! environment variables.
use Ipv4Addr;
use esp_config_int;
// SSH server settings
//pub(crate) const MTU: usize = 1536;
//pub(crate) const PORT: u16 = 22;
pub const SSH_STAMP_IDENT: &str = env!;
pub const KEY_SLOTS: usize = 1; // TODO: Document whether this a "reasonable default"? Justify why?
pub const DEFAULT_IP: Ipv4Addr = new; // TODO: Expose this setting via
// SSH_STAMP env var?
// WiFi SSID and password character set (alphanumeric)
pub const WIFI_PASSWORD_CHARS: & =
b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
// Wifi Station Mode Connection
pub const STATION_MODE_MAX_RETRY_SECONDS: u8 = 10;
/// UART buffer size in bytes.
pub const UART_BUFFER_SIZE: usize = 4096;
/// Receive buffer for the SSH TCP socket.
pub const TCP_RX_BUF: usize = 8192;
/// Transmit buffer for the SSH TCP socket.
pub const TCP_TX_BUF: usize = 4096;
/// Global allocator heap size in bytes.
pub const HEAP_SIZE: usize = esp_config_int!;