Update config separator, test the complex variant
This commit is contained in:
parent
72b35c40d8
commit
7c8c69b84e
@ -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");
|
||||
|
||||
@ -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") },
|
||||
>;
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ rustflags = [
|
||||
|
||||
[env]
|
||||
DEFMT_LOG = "info"
|
||||
ESP_HAL_EMBASSY_CONFIG_TIMER_QUEUE="multiple-integrated"
|
||||
|
||||
[unstable]
|
||||
build-std = ["core"]
|
||||
|
||||
@ -28,6 +28,7 @@ rustflags = [
|
||||
|
||||
[env]
|
||||
ESP_LOG = "info"
|
||||
ESP_HAL_EMBASSY_CONFIG_TIMER_QUEUE="multiple-integrated"
|
||||
|
||||
[unstable]
|
||||
build-std = ["alloc", "core"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user