aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src/codegen/bindings
diff options
context:
space:
mode:
authoronsdagens <112828711+onsdagens@users.noreply.github.com>2024-04-04 11:35:41 +0200
committerGitHub <noreply@github.com>2024-04-04 09:35:41 +0000
commit906278e31026df8874b1b1593af8f92ce6d7e247 (patch)
treed77ade2744c2c13d2706831236e7904ffd183435 /rtic-macros/src/codegen/bindings
parent53ed7bf7edb21180cb18c0bf6a7dbe6168331879 (diff)
Adjust esp32c3 codegen, bump pac to 0.21.0 (#906)
* adjust esp32c3 codegen, bump pac to 0.21.0 * add esp32c3 example * adjust workflow flags * CI: Fix esp32c3 comment * esp32c3: Remove commented out git-dep * CI: Actually check the ESP32-C3 examples * Autoformat rtic/cargo.toml --------- Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'rtic-macros/src/codegen/bindings')
-rw-r--r--rtic-macros/src/codegen/bindings/esp32c3.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/rtic-macros/src/codegen/bindings/esp32c3.rs b/rtic-macros/src/codegen/bindings/esp32c3.rs
index f8ea22a..26617e0 100644
--- a/rtic-macros/src/codegen/bindings/esp32c3.rs
+++ b/rtic-macros/src/codegen/bindings/esp32c3.rs
@@ -176,11 +176,11 @@ mod esp32c3 {
// Check for stack overflow using symbols from `risc-v-rt`.
extern "C" {
pub static _stack_start: u32;
- pub static __ebss: u32;
+ pub static _bss_end: u32;
}
let stack_start = &_stack_start as *const _ as u32;
- let ebss = &__ebss as *const _ as u32;
+ let ebss = &_bss_end as *const _ as u32;
if stack_start > ebss {
// No flip-link usage, check the SP for overflow.
@@ -241,8 +241,9 @@ mod esp32c3 {
stmts
}
-}
pub fn extra_modules(_app: &App, _analysis: &SyntaxAnalysis) -> Vec<TokenStream2> {
vec![]
}
+}
+