aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/spi_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/spi_lld.h')
-rw-r--r--os/hal/templates/spi_lld.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/os/hal/templates/spi_lld.h b/os/hal/templates/spi_lld.h
index 67ca25b02..152784701 100644
--- a/os/hal/templates/spi_lld.h
+++ b/os/hal/templates/spi_lld.h
@@ -46,13 +46,25 @@
/* Driver data structures and types. */
/*===========================================================================*/
+
+/**
+ * @brief SPI notification callback type.
+ *
+ * @param[in] spip pointer to the @p SPIDriver object triggering the
+ * callback
+ */
+typedef void (*spicallback_t)(SPIDriver *spip);
+
/**
* @brief Driver configuration structure.
* @note Implementations may extend this structure to contain more,
* architecture dependent, fields.
*/
typedef struct {
-
+ /**
+ * @brief Operation complete callback.
+ */
+ spicallback_t spc_endcb;
} SPIConfig;
/**