From 62ff3f484ec086017c7565cc24cdbcf833dd8a37 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 5 Apr 2023 14:22:23 +0200 Subject: [PATCH] {stm32f7,stm32h7,stm32l4}/sdmmc: callback support requires HPWORK --- arch/arm/src/stm32f7/stm32_sdmmc.c | 4 ++-- arch/arm/src/stm32h7/stm32_sdmmc.c | 4 ++-- arch/arm/src/stm32l4/stm32l4_sdmmc.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index be3015bd12..be4de99a18 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -115,8 +115,8 @@ # endif #endif -#ifndef CONFIG_SCHED_WORKQUEUE -# error "Callback support requires CONFIG_SCHED_WORKQUEUE" +#if !defined(CONFIG_SCHED_WORKQUEUE) || !defined(CONFIG_SCHED_HPWORK) +# error "Callback support requires CONFIG_SCHED_WORKQUEUE and CONFIG_SCHED_HPWORK" #endif #ifdef CONFIG_STM32F7_SDMMC1 diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c b/arch/arm/src/stm32h7/stm32_sdmmc.c index 2ea5ef5d90..ad934e23cc 100644 --- a/arch/arm/src/stm32h7/stm32_sdmmc.c +++ b/arch/arm/src/stm32h7/stm32_sdmmc.c @@ -138,8 +138,8 @@ # define SRAM4_END (SRAM4_START + STM32H7_SRAM4_SIZE) #endif -#ifndef CONFIG_SCHED_WORKQUEUE -# error "Callback support requires CONFIG_SCHED_WORKQUEUE" +#if !defined(CONFIG_SCHED_WORKQUEUE) || !defined(CONFIG_SCHED_HPWORK) +# error "Callback support requires CONFIG_SCHED_WORKQUEUE and CONFIG_SCHED_HPWORK" #endif #undef HAVE_SDMMC_SDIO_MODE diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c b/arch/arm/src/stm32l4/stm32l4_sdmmc.c index 018290ce42..b02768bf65 100644 --- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c +++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c @@ -93,8 +93,8 @@ # endif #endif -#ifndef CONFIG_SCHED_WORKQUEUE -# error "Callback support requires CONFIG_SCHED_WORKQUEUE" +#if !defined(CONFIG_SCHED_WORKQUEUE) || !defined(CONFIG_SCHED_HPWORK) +# error "Callback support requires CONFIG_SCHED_WORKQUEUE and CONFIG_SCHED_HPWORK" #endif #ifdef CONFIG_STM32L4_SDMMC1