Skip to content

Commit 0c8c27a

Browse files
committed
modified for use with stm8f103 breakout board
1 parent 4239cbc commit 0c8c27a

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile renamed to examples/sdcc-examples-stm8/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SDCC=sdcc
22
SDLD=sdld
3-
OBJECTS=blinky.ihx uart.ihx sp_test.ihx
3+
OBJECTS=blinky.ihx uart.ihx #sp_test.ihx
44

55
.PHONY: all clean flash
66

File renamed without changes.

blinky.c renamed to examples/sdcc-examples-stm8/blinky.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
int main() {
44
int d;
55
// Configure pins
6-
PE_DDR = 0x80;
7-
PE_CR1 = 0x80;
6+
PB_DDR = 0x20;
7+
PB_CR1 = 0x20;
88
// Loop
99
do {
10-
PE_ODR ^= 0x80;
10+
PB_ODR ^= 0x20;
1111
for(d = 0; d < 29000; d++) { }
1212
} while(1);
1313
}

0 commit comments

Comments
 (0)