comparison python/stm32f4/blink.c3 @ 212:62386bcee1ba

Added parser combinator lib
author Windel Bouwman
date Sun, 30 Jun 2013 19:00:41 +0200
parents 8b2f20aae086
children 1fa3e0050b49
comparison
equal deleted inserted replaced
211:99164160fb0b 212:62386bcee1ba
6 // uint32_t SR; 6 // uint32_t SR;
7 //}; 7 //};
8 8
9 // Globals: 9 // Globals:
10 var int divider; 10 var int divider;
11 //const TIM2_s *TIM2; 11 //const TIM2_s *TIM2;// = (TIM2_s*)0x40004;
12 12
13 // Functions: 13 // Functions:
14 function void tim2_handler() 14 function void tim2_handler()
15 { 15 {
16 // if (TIM2->SR & TIM_SR_UIF) 16 // if (TIM2->SR & TIM_SR_UIF)
17 if (true) 17 if (true)
18 { 18 {
19 divider = divider + 1; 19 divider = divider + 1;
20 /*
21 if (divider > 100000) 20 if (divider > 100000)
22 { 21 {
23 divider = 0; 22 divider = 0;
24 GPIOD->ODR ^= (1 << 13); 23 //GPIOD->ODR ^= (1 << 13);
25 } 24 }
26 */
27 } 25 }
28 } 26 }
29 27
30 function void main() 28 function void main()
31 { 29 {