aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/adc.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-05-23 17:41:04 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-05-26 02:42:06 -0400
commit47f8d216d0efe8b523bf3cdd00816fb9965d22a7 (patch)
tree651196087275c614353fbce2a70c3dd8fd58016b /libmaple/adc.h
parent41a93d13f0c89b00b90a492c24c9576e93cebafd (diff)
downloadlibrambutan-47f8d216d0efe8b523bf3cdd00816fb9965d22a7.tar.gz
librambutan-47f8d216d0efe8b523bf3cdd00816fb9965d22a7.zip
Tweak some register map base pointers.
Replace #define XXX_BASE ((xxx_reg_map*)0xDEADBEEF) with #define XXX_BASE ((struct xxx_reg_map*)0xDEADBEEF) for increased GDB-friendliness.
Diffstat (limited to 'libmaple/adc.h')
-rw-r--r--libmaple/adc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/adc.h b/libmaple/adc.h
index 41b2096..efb45f7 100644
--- a/libmaple/adc.h
+++ b/libmaple/adc.h
@@ -80,12 +80,12 @@ extern const adc_dev *ADC3;
*/
/** ADC1 register map base pointer. */
-#define ADC1_BASE ((adc_reg_map*)0x40012400)
+#define ADC1_BASE ((struct adc_reg_map*)0x40012400)
/** ADC2 register map base pointer. */
-#define ADC2_BASE ((adc_reg_map*)0x40012800)
+#define ADC2_BASE ((struct adc_reg_map*)0x40012800)
#ifdef STM32_HIGH_DENSITY
/** ADC3 register map base pointer. */
-#define ADC3_BASE ((adc_reg_map*)0x40013C00)
+#define ADC3_BASE ((struct adc_reg_map*)0x40013C00)
#endif
/*