Skip to content

Port firmware to rust #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ electronics/imu_module/production/backups/*
# Platform IO
firmware/.pio/*
firmware/.vscode/*

firmware/target/*
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

15 changes: 15 additions & 0 deletions firmware/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[target.xtensa-esp32-none-elf]
runner = "espflash flash --monitor"

[env]
ESP_LOG="INFO"

[build]
rustflags = [
"-C", "link-arg=-nostartfiles"
]

target = "xtensa-esp32-none-elf"

[unstable]
build-std = ["alloc", "core"]
22 changes: 17 additions & 5 deletions firmware/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# RustRover
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
10 changes: 0 additions & 10 deletions firmware/.vscode/extensions.json

This file was deleted.

3 changes: 0 additions & 3 deletions firmware/.vscode/settings.json

This file was deleted.

Loading