aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-10 15:14:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-10 15:14:49 +0000
commit70ab312f0f88f24cf1e4f33218cff877c6c0b3c2 (patch)
treee35baf84be66fc5285c41f68b0c519a0b6ac0db9 /os/hal/templates
parent80cf0731d8321843868b38074e19569d3ca31d99 (diff)
downloadChibiOS-70ab312f0f88f24cf1e4f33218cff877c6c0b3c2.tar.gz
ChibiOS-70ab312f0f88f24cf1e4f33218cff877c6c0b3c2.tar.bz2
ChibiOS-70ab312f0f88f24cf1e4f33218cff877c6c0b3c2.zip
New SPI driver model (callback based), not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2242 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates')
-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;
/**