aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-08 22:04:46 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-08 22:04:46 +0000
commit725e8f6aa5035529011560212e1a92d8f9b2ab38 (patch)
treed26b0e3c78a86376857fdeef9674d4c069ff292b
parent4817e5d8143b362981684de9225bcc0805d2bb0d (diff)
downloadChibiOS-725e8f6aa5035529011560212e1a92d8f9b2ab38.tar.gz
ChibiOS-725e8f6aa5035529011560212e1a92d8f9b2ab38.tar.bz2
ChibiOS-725e8f6aa5035529011560212e1a92d8f9b2ab38.zip
Reverted to 3771 revision.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3773 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32F1xx/stm32_dma.h2
-rw-r--r--os/hal/platforms/STM32F2xx/stm32_dma.h2
-rw-r--r--os/hal/platforms/STM32F4xx/stm32_dma.h2
-rw-r--r--os/hal/platforms/STM32L1xx/stm32_dma.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32F1xx/stm32_dma.h b/os/hal/platforms/STM32F1xx/stm32_dma.h
index deaac593d..7e230d851 100644
--- a/os/hal/platforms/STM32F1xx/stm32_dma.h
+++ b/os/hal/platforms/STM32F1xx/stm32_dma.h
@@ -146,7 +146,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_CCR1_PL
-#define STM32_DMA_CR_PL(n) (((n) << 12) & (STM32_DMA_CR_PL_MASK))
+#define STM32_DMA_CR_PL(n) ((n) << 12)
/** @} */
/**
diff --git a/os/hal/platforms/STM32F2xx/stm32_dma.h b/os/hal/platforms/STM32F2xx/stm32_dma.h
index d5cc2641c..b5f95f0c8 100644
--- a/os/hal/platforms/STM32F2xx/stm32_dma.h
+++ b/os/hal/platforms/STM32F2xx/stm32_dma.h
@@ -144,7 +144,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_SxCR_PL
-#define STM32_DMA_CR_PL(n) (((n) << 16) & (STM32_DMA_CR_PL_MASK))
+#define STM32_DMA_CR_PL(n) ((n) << 16)
/** @} */
/**
diff --git a/os/hal/platforms/STM32F4xx/stm32_dma.h b/os/hal/platforms/STM32F4xx/stm32_dma.h
index 9879dcd24..16dcea02d 100644
--- a/os/hal/platforms/STM32F4xx/stm32_dma.h
+++ b/os/hal/platforms/STM32F4xx/stm32_dma.h
@@ -144,7 +144,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_SxCR_PL
-#define STM32_DMA_CR_PL(n) (((n) << 16) & (STM32_DMA_CR_PL_MASK))
+#define STM32_DMA_CR_PL(n) ((n) << 16)
/** @} */
/**
diff --git a/os/hal/platforms/STM32L1xx/stm32_dma.h b/os/hal/platforms/STM32L1xx/stm32_dma.h
index 7bc6362b0..6afadfcc1 100644
--- a/os/hal/platforms/STM32L1xx/stm32_dma.h
+++ b/os/hal/platforms/STM32L1xx/stm32_dma.h
@@ -137,7 +137,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_CCR1_PL
-#define STM32_DMA_CR_PL(n) (((n) << 12) & (STM32_DMA_CR_PL_MASK))
+#define STM32_DMA_CR_PL(n) ((n) << 12)
/** @} */
/**