Mercurial > lcfOS
comparison python/stm32f4/blink.c3 @ 220:3f6c30a5d234
Major change in expression parsing to enable pointers and structs
author | Windel Bouwman |
---|---|
date | Sat, 06 Jul 2013 21:32:20 +0200 |
parents | 1fa3e0050b49 |
children | 848c4b15fd0b |
comparison
equal
deleted
inserted
replaced
219:1fa3e0050b49 | 220:3f6c30a5d234 |
---|---|
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 = 0x40003022; |
34 *RCC_AHB1ENR = *RCC_AHB1ENR | 8943; | |
34 /* | 35 /* |
35 RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; | 36 RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; |
36 RCC->APB1ENR |= RCC_APB1ENR_TIM2EN; | 37 RCC->APB1ENR |= RCC_APB1ENR_TIM2EN; |
37 | 38 |
38 GPIOD->MODER = (1<<26); | 39 GPIOD->MODER = (1<<26); |