diff --git a/src/fas_common.h b/src/fas_common.h index a3e66cd..05b0064 100644 --- a/src/fas_common.h +++ b/src/fas_common.h @@ -118,7 +118,6 @@ struct queue_end_s { #include #include -#define SUPPORT_SELECT_DRIVER_TYPE #define SUPPORT_ESP32_MCPWM_PCNT #define SUPPORT_ESP32_RMT #include @@ -442,4 +441,12 @@ enum channels { channelA, channelB, channelC }; #include #endif /* __ESP32_IDF_V44__ */ +//========================================================================== +// determine, if driver type selection should be supported +#if defined(QUEUES_MCPWM_PCNT) && defined(QUEUES_RMT) +#if (QUEUES_MCPWM_PCNT > 0) && (QUEUES_RMT > 0) +#define SUPPORT_SELECT_DRIVER_TYPE +#endif +#endif + #endif /* COMMON_H */