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>
This commit is contained in:
onsdagens 2024-04-04 11:35:41 +02:00 committed by GitHub
parent 53ed7bf7ed
commit 906278e310
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1028 additions and 17 deletions

View file

@ -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![]
}
}