From bfd29a27c2c977de5b565e48012eb38e6541f15f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 5 Mar 2014 10:42:18 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6755 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/dac.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/dac.h b/os/hal/include/dac.h index ac2396b1c..3d1157ae0 100644 --- a/os/hal/include/dac.h +++ b/os/hal/include/dac.h @@ -1,6 +1,6 @@ /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011,2012 Giovanni Di Sirio. + 2011,2012,2013 Giovanni Di Sirio. This file is part of ChibiOS/RT. @@ -64,10 +64,6 @@ /* Derived constants and error checks. */ /*===========================================================================*/ -#if DAC_USE_MUTUAL_EXCLUSION && !CH_USE_MUTEXES && !CH_USE_SEMAPHORES && !NIL_USE_MUTEXES && !NIL_USE_SEMAPHORES -//#error "DAC_USE_MUTUAL_EXCLUSION requires CH_USE_MUTEXES and/or CH_USE_SEMAPHORES" -#endif - /*===========================================================================*/ /* Driver data structures and types. */ /*===========================================================================*/ @@ -118,7 +114,6 @@ typedef enum { */ #define _dac_reset_i(dacp) osalThreadResumeI(&(dacp)->thread, MSG_RESET) - /** * @brief Resumes a thread waiting for a conversion completion. * @@ -138,7 +133,7 @@ typedef enum { #define _dac_wakeup_isr(dacp) { \ osalSysLockFromISR(); \ osalThreadResumeI(&(dacp)->thread, MSG_OK); \ - osalSysUnlockFromISR(); \ + osalSysUnlockFromISR(); \ } /** @@ -151,7 +146,7 @@ typedef enum { #define _dac_timeout_isr(dacp) { \ osalSysLockFromISR(); \ osalThreadResumeI(&(dacp)->thread, MSG_TIMEOUT); \ - osalSysUnlockFromISR(); \ + osalSysUnlockFromISR(); \ } #else /* !DAC_USE_WAIT */ -- cgit v1.2.3