Mercurial > lcfOS
diff examples/c3/burn2.c3 @ 306:b145f8e6050b
Start on c3 rewrite
author | Windel Bouwman |
---|---|
date | Mon, 09 Dec 2013 19:00:21 +0100 |
parents | 158068af716c |
children |
line wrap: on
line diff
--- a/examples/c3/burn2.c3 Fri Dec 06 13:50:38 2013 +0100 +++ b/examples/c3/burn2.c3 Mon Dec 09 19:00:21 2013 +0100 @@ -27,14 +27,14 @@ return; } - var stm32f4xx:RCC_Type RCC; - RCC = cast<stm32f4xx:RCC_Type>(0x40023800); + var stm32f4xx.RCC_Type RCC; + RCC = cast<stm32f4xx.RCC_Type>(0x40023800); // Enable the clock to port D: RCC->AHB1ENR = RCC->AHB1ENR | (1 << 3); // Memory mapped control registers: - var stm32f4xx:GPIO_Type GPIOD; - GPIOD = cast<stm32f4xx:GPIO_Type>(0x40020C00); + var stm32f4xx.GPIO_Type GPIOD; + GPIOD = cast<stm32f4xx.GPIO_Type>(0x40020C00); // PD13 == output (01) GPIOD->MODER = (1 << (pin << 1)); @@ -48,7 +48,7 @@ init(13); var int a; - a = 0 + a = 0; while (a < 1000) { a = add(a, 1);