diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-19 10:08:08 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-19 10:08:08 +0000 |
commit | cb565d0734615184aa74eb76981e55ff2aaebd35 (patch) | |
tree | 3fd2f9a94b792257b11a8b6e94041feb1362c2e2 /os/hal/platforms/AT91SAM7 | |
parent | 3dea38d9549dae5956b8753e824b3e855e91fdee (diff) | |
download | ChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.tar.gz ChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.tar.bz2 ChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1441 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7')
-rw-r--r-- | os/hal/platforms/AT91SAM7/mac_lld.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/os/hal/platforms/AT91SAM7/mac_lld.h b/os/hal/platforms/AT91SAM7/mac_lld.h index 4de8dc481..23139e989 100644 --- a/os/hal/platforms/AT91SAM7/mac_lld.h +++ b/os/hal/platforms/AT91SAM7/mac_lld.h @@ -54,10 +54,6 @@ #define MAC_BUFFERS_SIZE 1518
#endif
-/*===========================================================================*/
-/* EMAC specific settings. */
-/*===========================================================================*/
-
/**
* @brief Interrupt priority level for the EMAC device.
*/
@@ -66,6 +62,14 @@ #endif
/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
+#error "the MAC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
+#endif
+
+/*===========================================================================*/
/* EMAC specific constants. */
/*===========================================================================*/
|