aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mac.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-27 15:57:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-27 15:57:02 +0000
commit4c8314f8044617197c73e6603c21a1ef8cc5470a (patch)
tree79cd850c7473ab1377f4c09da0a0d4b9b0b75dab /os/io/mac.c
parent0055ceb084f7b91d039b189c19c257f0fae63ce9 (diff)
downloadChibiOS-4c8314f8044617197c73e6603c21a1ef8cc5470a.tar.gz
ChibiOS-4c8314f8044617197c73e6603c21a1ef8cc5470a.tar.bz2
ChibiOS-4c8314f8044617197c73e6603c21a1ef8cc5470a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1190 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/mac.c')
-rw-r--r--os/io/mac.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/io/mac.c b/os/io/mac.c
index 0a2736458..d7c20df05 100644
--- a/os/io/mac.c
+++ b/os/io/mac.c
@@ -169,4 +169,17 @@ void macReleaseReceiveDescriptor(MACDriver *macp,
mac_lld_release_receive_descriptor(macp, rdp);
}
+/**
+ * @brief Updates and returns the link status.
+ *
+ * @param[in] macp pointer to the @p MACDriver object
+ * @return The link status.
+ * @retval TRUE if the link is active.
+ * @retval FALSE if the link is down.
+ */
+bool_t macPollLinkStatus(MACDriver *macp) {
+
+ return mac_lld_poll_link_status(macp);
+}
+
/** @} */