From 85d62cbdf68219a526aa4ee68c325adda8b8d67e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 30 Sep 2018 17:01:52 +0000 Subject: Added WSPI-related code, updated halconf.h files. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12311 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- testhal/STM32/STM32F7xx/GPT-ADC/halconf.h | 27 +++++++++++++++++++++++++++ testhal/STM32/STM32F7xx/IRQ_STORM/halconf.h | 27 +++++++++++++++++++++++++++ testhal/STM32/STM32F7xx/PWM-ICU/halconf.h | 27 +++++++++++++++++++++++++++ testhal/STM32/STM32F7xx/SPI/halconf.h | 27 +++++++++++++++++++++++++++ testhal/STM32/STM32F7xx/USB_RAW/halconf.h | 27 +++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) (limited to 'testhal/STM32/STM32F7xx') diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/halconf.h b/testhal/STM32/STM32F7xx/GPT-ADC/halconf.h index a64fdbb06..491c5da0b 100644 --- a/testhal/STM32/STM32F7xx/GPT-ADC/halconf.h +++ b/testhal/STM32/STM32F7xx/GPT-ADC/halconf.h @@ -201,6 +201,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the WSPI subsystem. + */ +#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) +#define HAL_USE_WSPI FALSE +#endif + /*===========================================================================*/ /* PAL driver related settings. */ /*===========================================================================*/ @@ -527,6 +534,26 @@ #define USB_USE_WAIT FALSE #endif +/*===========================================================================*/ +/* WSPI driver related settings. */ +/*===========================================================================*/ + +/** + * @brief Enables synchronous APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) +#define WSPI_USE_WAIT TRUE +#endif + +/** + * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) +#define WSPI_USE_MUTUAL_EXCLUSION TRUE +#endif + #endif /* HALCONF_H */ /** @} */ diff --git a/testhal/STM32/STM32F7xx/IRQ_STORM/halconf.h b/testhal/STM32/STM32F7xx/IRQ_STORM/halconf.h index c48475a0d..ea72a09b6 100644 --- a/testhal/STM32/STM32F7xx/IRQ_STORM/halconf.h +++ b/testhal/STM32/STM32F7xx/IRQ_STORM/halconf.h @@ -201,6 +201,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the WSPI subsystem. + */ +#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) +#define HAL_USE_WSPI FALSE +#endif + /*===========================================================================*/ /* PAL driver related settings. */ /*===========================================================================*/ @@ -527,6 +534,26 @@ #define USB_USE_WAIT FALSE #endif +/*===========================================================================*/ +/* WSPI driver related settings. */ +/*===========================================================================*/ + +/** + * @brief Enables synchronous APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) +#define WSPI_USE_WAIT TRUE +#endif + +/** + * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) +#define WSPI_USE_MUTUAL_EXCLUSION TRUE +#endif + #endif /* HALCONF_H */ /** @} */ diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/halconf.h b/testhal/STM32/STM32F7xx/PWM-ICU/halconf.h index f313a7ef6..c1c1f039f 100644 --- a/testhal/STM32/STM32F7xx/PWM-ICU/halconf.h +++ b/testhal/STM32/STM32F7xx/PWM-ICU/halconf.h @@ -201,6 +201,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the WSPI subsystem. + */ +#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) +#define HAL_USE_WSPI FALSE +#endif + /*===========================================================================*/ /* PAL driver related settings. */ /*===========================================================================*/ @@ -527,6 +534,26 @@ #define USB_USE_WAIT FALSE #endif +/*===========================================================================*/ +/* WSPI driver related settings. */ +/*===========================================================================*/ + +/** + * @brief Enables synchronous APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) +#define WSPI_USE_WAIT TRUE +#endif + +/** + * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) +#define WSPI_USE_MUTUAL_EXCLUSION TRUE +#endif + #endif /* HALCONF_H */ /** @} */ diff --git a/testhal/STM32/STM32F7xx/SPI/halconf.h b/testhal/STM32/STM32F7xx/SPI/halconf.h index 4cd7610c7..78e079d97 100644 --- a/testhal/STM32/STM32F7xx/SPI/halconf.h +++ b/testhal/STM32/STM32F7xx/SPI/halconf.h @@ -201,6 +201,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the WSPI subsystem. + */ +#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) +#define HAL_USE_WSPI FALSE +#endif + /*===========================================================================*/ /* PAL driver related settings. */ /*===========================================================================*/ @@ -527,6 +534,26 @@ #define USB_USE_WAIT FALSE #endif +/*===========================================================================*/ +/* WSPI driver related settings. */ +/*===========================================================================*/ + +/** + * @brief Enables synchronous APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) +#define WSPI_USE_WAIT TRUE +#endif + +/** + * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) +#define WSPI_USE_MUTUAL_EXCLUSION TRUE +#endif + #endif /* HALCONF_H */ /** @} */ diff --git a/testhal/STM32/STM32F7xx/USB_RAW/halconf.h b/testhal/STM32/STM32F7xx/USB_RAW/halconf.h index 93ce1236e..b5b76c4a3 100644 --- a/testhal/STM32/STM32F7xx/USB_RAW/halconf.h +++ b/testhal/STM32/STM32F7xx/USB_RAW/halconf.h @@ -201,6 +201,13 @@ #define HAL_USE_WDG FALSE #endif +/** + * @brief Enables the WSPI subsystem. + */ +#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) +#define HAL_USE_WSPI FALSE +#endif + /*===========================================================================*/ /* PAL driver related settings. */ /*===========================================================================*/ @@ -527,6 +534,26 @@ #define USB_USE_WAIT TRUE #endif +/*===========================================================================*/ +/* WSPI driver related settings. */ +/*===========================================================================*/ + +/** + * @brief Enables synchronous APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) +#define WSPI_USE_WAIT TRUE +#endif + +/** + * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. + * @note Disabling this option saves both code and data space. + */ +#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) +#define WSPI_USE_MUTUAL_EXCLUSION TRUE +#endif + #endif /* HALCONF_H */ /** @} */ -- cgit v1.2.3