diff python/c3/examples/burn2.c3 @ 279:2ccd57b1d78c

Fix register allocator to do burn2 OK
author Windel Bouwman
date Sat, 12 Oct 2013 09:56:23 +0200
parents cf7d5fb7d9c8
children 02385f62f250
line wrap: on
line diff
--- a/python/c3/examples/burn2.c3	Sun Sep 29 14:08:15 2013 +0200
+++ b/python/c3/examples/burn2.c3	Sat Oct 12 09:56:23 2013 +0200
@@ -24,7 +24,7 @@
     var int pin;
     pin = 15;
     // PD13 == output (01)
-    GPIOD->MODER = (1 << (pin * 2));
+    GPIOD->MODER = (1 << (pin << 1));
     GPIOD->ODR = (1 << pin);
 }