summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-06 22:40:17 -0700
committerKeith Packard <keithp@keithp.com>2012-04-06 22:40:17 -0700
commit89201cdf2062b7319a0da4e266e4d6edba1493f8 (patch)
treed6c17974558db9d6d763361db0092ea915b5d5ae /src
parent0bcc23c3be1a20a362fea268901c600f9f0d287a (diff)
altos: Declare stm DMA address registers as volatile void *
Eliminates a cast when assigning to them. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm/stm32l.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h
index b40ec0ee..e03556b0 100644
--- a/src/stm/stm32l.h
+++ b/src/stm/stm32l.h
@@ -21,6 +21,7 @@
#include <stdint.h>
typedef volatile uint32_t vuint32_t;
+typedef volatile void * vvoid_t;
struct stm_gpio {
vuint32_t moder;
@@ -851,8 +852,8 @@ isr(tim7)
struct stm_dma_channel {
vuint32_t ccr;
vuint32_t cndtr;
- vuint32_t cpar;
- vuint32_t cmar;
+ vvoid_t cpar;
+ vvoid_t cmar;
vuint32_t reserved;
};