Update config separator, test the complex variant

This commit is contained in:
Dániel Buga 2025-01-06 09:08:32 +01:00
parent 72b35c40d8
commit 7c8c69b84e
No known key found for this signature in database
4 changed files with 4 additions and 2 deletions

View File

@ -82,7 +82,7 @@ fn main() -> Result<(), Box<dyn StdError>> {
println!("cargo:rustc-check-cfg=cfg(single_queue)");
println!("cargo:rustc-check-cfg=cfg(generic_timers)");
match &crate_config["ESP_HAL_EMBASSY_TIMER_QUEUE"] {
match &crate_config["ESP_HAL_EMBASSY_CONFIG_TIMER_QUEUE"] {
Value::String(s) if s.as_str() == "single-integrated" => {
println!("cargo:rustc-cfg=integrated_timers");
println!("cargo:rustc-cfg=single_queue");

View File

@ -189,6 +189,6 @@ mod queue_impl {
#[cfg(generic_timers)]
mod queue_impl {
pub(super) type RawQueue = embassy_time_queue_driver::queue_generic::ConstGenericQueue<
{ esp_config::esp_config_int!(usize, "ESP_HAL_EMBASSY_GENERIC_QUEUE_SIZE") },
{ esp_config::esp_config_int!(usize, "ESP_HAL_EMBASSY_CONFIG_GENERIC_QUEUE_SIZE") },
>;
}

View File

@ -18,6 +18,7 @@ rustflags = [
[env]
DEFMT_LOG = "info"
ESP_HAL_EMBASSY_CONFIG_TIMER_QUEUE="multiple-integrated"
[unstable]
build-std = ["core"]

View File

@ -28,6 +28,7 @@ rustflags = [
[env]
ESP_LOG = "info"
ESP_HAL_EMBASSY_CONFIG_TIMER_QUEUE="multiple-integrated"
[unstable]
build-std = ["alloc", "core"]