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 --- os/hal/include/hal_wspi.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_wspi.h b/os/hal/include/hal_wspi.h index 3d7a9a1aa..8ba4be5ff 100644 --- a/os/hal/include/hal_wspi.h +++ b/os/hal/include/hal_wspi.h @@ -37,7 +37,7 @@ * supported. The LLD can also define additional modes or reorder * the bit masks in a more convenient way for the underlying * implementation. It is important however to maintain the same - * same for the same functionality. + * name for the same functionality. * @{ */ #define WSPI_CFG_INSTRUCTION_MODE_MASK (7LU << 0LU) @@ -142,6 +142,24 @@ typedef enum { WSPI_MEMMAP = 5 /**< In memory mapped mode. */ } wspistate_t; +/** + * @brief Type of a structure representing an WSPI driver. + */ +typedef struct hal_wspi_driver WSPIDriver; + +/** + * @brief Type of a structure representing an WSPI driver configuration. + */ +typedef struct hal_wspi_config WSPIConfig; + +/** + * @brief Type of a WSPI notification callback. + * + * @param[in] wspip pointer to the @p WSPIDriver object triggering the + * callback + */ +typedef void (*wspicallback_t)(WSPIDriver *wspip); + /** * @brief Type of a WSPI command descriptor. */ -- cgit v1.2.3