diff python/stm32f4/blink.c3 @ 221:848c4b15fd0b

pointers
author Windel Bouwman
date Mon, 08 Jul 2013 22:21:44 +0200
parents 3f6c30a5d234
children 7f18ed9b6b7e
line wrap: on
line diff
--- a/python/stm32f4/blink.c3	Sat Jul 06 21:32:20 2013 +0200
+++ b/python/stm32f4/blink.c3	Mon Jul 08 22:21:44 2013 +0200
@@ -30,7 +30,7 @@
     divider = 0;
 
     var int* RCC_AHB1ENR;
-    RCC_AHB1ENR = 0x40003022;
+    RCC_AHB1ENR = cast<int*>(0x40003022);
     *RCC_AHB1ENR = *RCC_AHB1ENR | 8943;
     /*
 	RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN;