comparison python/stm32f4/burn2.c3 @ 268:5ec7580976d9

Op naar tree-IR
author Windel Bouwman
date Wed, 14 Aug 2013 20:12:40 +0200
parents ed14e077124c
children
comparison
equal deleted inserted replaced
267:e7c8f7eb3f59 268:5ec7580976d9
22 GPIOD = cast<GPIO_Type>(0x40020C00); 22 GPIOD = cast<GPIO_Type>(0x40020C00);
23 23
24 var int pin; 24 var int pin;
25 pin = 15; 25 pin = 15;
26 // PD13 == output (01) 26 // PD13 == output (01)
27 GPIOD->MODER = (1 << (pin << 1)); 27 GPIOD->MODER = (1 << (pin * 2));
28 GPIOD->ODR = (1 << pin); 28 GPIOD->ODR = (1 << pin);
29 } 29 }
30 30
31 31
32 function void main() 32 function void main()