Mercurial > lcfOS
comparison python/stm32f4/blink.c3 @ 221:848c4b15fd0b
pointers
author | Windel Bouwman |
---|---|
date | Mon, 08 Jul 2013 22:21:44 +0200 |
parents | 3f6c30a5d234 |
children | 7f18ed9b6b7e |
comparison
equal
deleted
inserted
replaced
220:3f6c30a5d234 | 221:848c4b15fd0b |
---|---|
28 function void main() | 28 function void main() |
29 { | 29 { |
30 divider = 0; | 30 divider = 0; |
31 | 31 |
32 var int* RCC_AHB1ENR; | 32 var int* RCC_AHB1ENR; |
33 RCC_AHB1ENR = 0x40003022; | 33 RCC_AHB1ENR = cast<int*>(0x40003022); |
34 *RCC_AHB1ENR = *RCC_AHB1ENR | 8943; | 34 *RCC_AHB1ENR = *RCC_AHB1ENR | 8943; |
35 /* | 35 /* |
36 RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; | 36 RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; |
37 RCC->APB1ENR |= RCC_APB1ENR_TIM2EN; | 37 RCC->APB1ENR |= RCC_APB1ENR_TIM2EN; |
38 | 38 |