aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mac.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-27 15:00:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-27 15:00:08 +0000
commit0055ceb084f7b91d039b189c19c257f0fae63ce9 (patch)
tree195941ce73345f0f33ac1a1ecdfefdb289414456 /os/io/mac.h
parent85eea6f1955d3aed6a2c7f2ae38cf48902973edf (diff)
downloadChibiOS-0055ceb084f7b91d039b189c19c257f0fae63ce9.tar.gz
ChibiOS-0055ceb084f7b91d039b189c19c257f0fae63ce9.tar.bz2
ChibiOS-0055ceb084f7b91d039b189c19c257f0fae63ce9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1189 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/mac.h')
-rw-r--r--os/io/mac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/io/mac.h b/os/io/mac.h
index b652fe74d..1cb135297 100644
--- a/os/io/mac.h
+++ b/os/io/mac.h
@@ -45,6 +45,16 @@
*/
#define macGetReceiveBuffer(rdp) mac_lld_get_receive_buffer(rdp)
+/**
+ * @bief Returns the received frames event source.
+ *
+ * @param[in] macp pointer to the @p MACDriver object
+ * @return The pointer to the @p EventSource structure.
+ */
+#if CH_USE_EVENTS || defined(__DOXYGEN__)
+#define macGetReceiveEventSource(macp) (&(macp)->md_rdevent)
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif