Skip to content

Commit c4ba294

Browse files
code indented
1 parent c2ff74f commit c4ba294

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

blinky.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <iostm8s103.h>
1+
#include <iostm8s103.h>
22

33
main()
44
{
55
unsigned int d;
6-
PB_DDR = (1<<5);
7-
PB_CR1 = (1<<5);
6+
PB_DDR = (1<<5);
7+
PB_CR1 = (1<<5);
88
while (1){
9-
for (d = 0; d < 40000; d++); //Delay ~ 1 second
10-
PB_ODR |= (1<<5);
11-
for (d = 0; d < 40000; d++); //Delay ~ 1 second
12-
PB_ODR &= ~(1<<5);
9+
for (d = 0; d < 40000; d++); //Delay ~ 1 second
10+
PB_ODR |= (1<<5);
11+
for (d = 0; d < 40000; d++); //Delay ~ 1 second
12+
PB_ODR &= ~(1<<5);
1313
}
1414
}

0 commit comments

Comments
 (0)