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 --- demos/AVR/NIL-ARDUINO-MEGA/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/NIL-ARDUINO-MINI/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/NIL-ARDUINO-NANO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/NIL-ARDUINO-UNO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/NIL-DIGISPARK-ATTINY-167/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/NIL-MT-DB-X4/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-ARDUINO-LEONARDO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-ARDUINO-MEGA/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-ARDUINO-MINI/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-ARDUINO-NANO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-ARDUINO-UNO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-DIGISPARK-ATTINY-167/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-MT-DB-X4/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-PRO-MICRO/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/RT-TEENSY2-USB/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/TEST-SUITE-NIL/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/TEST-SUITE-OSLIB/halconf.h | 27 +++++++++++++++++++++++++++ demos/AVR/TEST-SUITE-RT/halconf.h | 27 +++++++++++++++++++++++++++ 18 files changed, 486 insertions(+) (limited to 'demos/AVR') diff --git a/demos/AVR/NIL-ARDUINO-MEGA/halconf.h b/demos/AVR/NIL-ARDUINO-MEGA/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/NIL-ARDUINO-MEGA/halconf.h +++ b/demos/AVR/NIL-ARDUINO-MEGA/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/demos/AVR/NIL-ARDUINO-MINI/halconf.h b/demos/AVR/NIL-ARDUINO-MINI/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/NIL-ARDUINO-MINI/halconf.h +++ b/demos/AVR/NIL-ARDUINO-MINI/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/demos/AVR/NIL-ARDUINO-NANO/halconf.h b/demos/AVR/NIL-ARDUINO-NANO/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/NIL-ARDUINO-NANO/halconf.h +++ b/demos/AVR/NIL-ARDUINO-NANO/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/demos/AVR/NIL-ARDUINO-UNO/halconf.h b/demos/AVR/NIL-ARDUINO-UNO/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/NIL-ARDUINO-UNO/halconf.h +++ b/demos/AVR/NIL-ARDUINO-UNO/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/demos/AVR/NIL-DIGISPARK-ATTINY-167/halconf.h b/demos/AVR/NIL-DIGISPARK-ATTINY-167/halconf.h index 6919cd63b..b06e02dfa 100644 --- a/demos/AVR/NIL-DIGISPARK-ATTINY-167/halconf.h +++ b/demos/AVR/NIL-DIGISPARK-ATTINY-167/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/demos/AVR/NIL-MT-DB-X4/halconf.h b/demos/AVR/NIL-MT-DB-X4/halconf.h index 0d4a1279f..93e463b0d 100644 --- a/demos/AVR/NIL-MT-DB-X4/halconf.h +++ b/demos/AVR/NIL-MT-DB-X4/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/demos/AVR/RT-ARDUINO-LEONARDO/halconf.h b/demos/AVR/RT-ARDUINO-LEONARDO/halconf.h index b4b1acb9c..5590c5a80 100644 --- a/demos/AVR/RT-ARDUINO-LEONARDO/halconf.h +++ b/demos/AVR/RT-ARDUINO-LEONARDO/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/demos/AVR/RT-ARDUINO-MEGA/halconf.h b/demos/AVR/RT-ARDUINO-MEGA/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/RT-ARDUINO-MEGA/halconf.h +++ b/demos/AVR/RT-ARDUINO-MEGA/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/demos/AVR/RT-ARDUINO-MINI/halconf.h b/demos/AVR/RT-ARDUINO-MINI/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/RT-ARDUINO-MINI/halconf.h +++ b/demos/AVR/RT-ARDUINO-MINI/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/demos/AVR/RT-ARDUINO-NANO/halconf.h b/demos/AVR/RT-ARDUINO-NANO/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/RT-ARDUINO-NANO/halconf.h +++ b/demos/AVR/RT-ARDUINO-NANO/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/demos/AVR/RT-ARDUINO-UNO/halconf.h b/demos/AVR/RT-ARDUINO-UNO/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/RT-ARDUINO-UNO/halconf.h +++ b/demos/AVR/RT-ARDUINO-UNO/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/demos/AVR/RT-DIGISPARK-ATTINY-167/halconf.h b/demos/AVR/RT-DIGISPARK-ATTINY-167/halconf.h index 6919cd63b..b06e02dfa 100644 --- a/demos/AVR/RT-DIGISPARK-ATTINY-167/halconf.h +++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/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/demos/AVR/RT-MT-DB-X4/halconf.h b/demos/AVR/RT-MT-DB-X4/halconf.h index 0d4a1279f..93e463b0d 100644 --- a/demos/AVR/RT-MT-DB-X4/halconf.h +++ b/demos/AVR/RT-MT-DB-X4/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/demos/AVR/RT-PRO-MICRO/halconf.h b/demos/AVR/RT-PRO-MICRO/halconf.h index b4b1acb9c..5590c5a80 100644 --- a/demos/AVR/RT-PRO-MICRO/halconf.h +++ b/demos/AVR/RT-PRO-MICRO/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/demos/AVR/RT-TEENSY2-USB/halconf.h b/demos/AVR/RT-TEENSY2-USB/halconf.h index b1ac2ee07..8cc96cc9a 100644 --- a/demos/AVR/RT-TEENSY2-USB/halconf.h +++ b/demos/AVR/RT-TEENSY2-USB/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/demos/AVR/TEST-SUITE-NIL/halconf.h b/demos/AVR/TEST-SUITE-NIL/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/TEST-SUITE-NIL/halconf.h +++ b/demos/AVR/TEST-SUITE-NIL/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/demos/AVR/TEST-SUITE-OSLIB/halconf.h b/demos/AVR/TEST-SUITE-OSLIB/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/TEST-SUITE-OSLIB/halconf.h +++ b/demos/AVR/TEST-SUITE-OSLIB/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/demos/AVR/TEST-SUITE-RT/halconf.h b/demos/AVR/TEST-SUITE-RT/halconf.h index b92351f24..31a83af4b 100644 --- a/demos/AVR/TEST-SUITE-RT/halconf.h +++ b/demos/AVR/TEST-SUITE-RT/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 */ /** @} */ -- cgit v1.2.3