Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
setup_xtensa: false
# ESP-IDF demo using Xtensa toolchain
- name: esp32-std-demo
dir: examples/mousefood-esp32-std-demo
dir: examples/esp32-std-demo
target: xtensa-esp32-espidf
setup_xtensa: true
# EPD Waveshare demo
# EPD Waveshare demo
- name: epd-waveshare-demo
dir: examples/epd-waveshare-demo
target: ""
Expand Down
72 changes: 14 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ keywords = ["embedded-graphics", "ratatui", "tui"]
categories = ["embedded"]
exclude = ["/.github", "/assets"]

[profile.dev]
# Symbols are nice and they don't increase the size on Flash
debug = true
opt-level = 3

[profile.release]
# LLVM can perform better optimizations using a single thread
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 's'
overflow-checks = false

[workspace.dependencies]
ratatui-core = { version = "0.1.0", features = ["underline-color"] }
thiserror = { version = "2.0.18", default-features = false }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build]
target = "xtensa-esp32-espidf"
target-dir = "target"

[target.xtensa-esp32-espidf]
linker = "ldproxy"
Expand All @@ -12,4 +13,4 @@ build-std = ["std", "panic_abort"]
[env]
MCU = "esp32"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
ESP_IDF_VERSION = "v5.2.3"
ESP_IDF_VERSION = "v5.4"
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
[package]
name = "mousefood-esp32-std-demo"
name = "esp32-std-demo"
version = "0.1.0"
authors = ["Jagoda Estera Ślązak <[email protected]>"]
edition = "2024"
rust-version = "1.85.0"
publish = false

[[bin]]
name = "mousefood-esp32-std-demo"
harness = false # do not use the built in cargo test harness -> resolve rust-analyzer errors
name = "esp32-std-demo"
harness = false # do not use the built in cargo test harness -> resolve rust-analyzer errors

# Commented out due to workspace profiles being used
# Feel free to uncomment and adjust if you have copied this outside of a workspace
#
# [profile.release]
# opt-level = 3
#
# [profile.dev]
# debug = true # Symbols are nice and they don't increase the size on Flash
# Symbols are nice and they don't increase the size on Flash
# debug = true
# opt-level = 3

[features]
default = []
experimental = ["esp-idf-svc/experimental"]

[dependencies]
esp-idf-svc = { version = "0.51", features = [
"critical-section",
"embassy-time-driver",
"embassy-sync",
] }
esp-idf-svc = { version = "0.51", features = ["critical-section"] }
time = "0.3.45"
rand = "0.9.1"
mipidsi = "0.9.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384

# For better backtrace for stack overflows
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y

# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default).
# This allows to use 1 ms granularity for thread sleeps (10 ms by default).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<B: Backend> RatatuiLogoApp<B> {
ratatui_url_area,
);
frame.render_widget(
"github.com/j-g00da/mousefood".gray().underlined(),
"github.com/ratatui/mousefood".gray().underlined(),
mousefood_url_area,
);

Expand Down
16 changes: 16 additions & 0 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file lives at workspace root because esp-idf-sys looks for it there.
# See <https://github.com/esp-rs/esp-idf-sys/blob/dc61350013fd375a532d7d93ee91edf117433267/build/pio.rs#L114>

# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384

# For better backtrace for stack overflows
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y

# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default).
# This allows to use 1 ms granularity for thread sleeps (10 ms by default).
#CONFIG_FREERTOS_HZ=1000

# Workaround for https://github.com/espressif/esp-idf/issues/7631
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n