From 906278e31026df8874b1b1593af8f92ce6d7e247 Mon Sep 17 00:00:00 2001 From: onsdagens <112828711+onsdagens@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:35:41 +0200 Subject: Adjust esp32c3 codegen, bump pac to 0.21.0 (#906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- rtic-macros/src/codegen/bindings/esp32c3.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rtic-macros/src/codegen/bindings/esp32c3.rs') 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 { vec![] } +} + -- cgit v1.2.3