We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4239cbc commit 0c8c27aCopy full SHA for 0c8c27a
5 files changed
Makefile examples/sdcc-examples-stm8/MakefileMakefile renamed to examples/sdcc-examples-stm8/Makefile
@@ -1,6 +1,6 @@
1
SDCC=sdcc
2
SDLD=sdld
3
-OBJECTS=blinky.ihx uart.ihx sp_test.ihx
+OBJECTS=blinky.ihx uart.ihx #sp_test.ihx
4
5
.PHONY: all clean flash
6
README.md examples/sdcc-examples-stm8/README.mdREADME.md renamed to examples/sdcc-examples-stm8/README.md
blinky.c examples/sdcc-examples-stm8/blinky.cblinky.c renamed to examples/sdcc-examples-stm8/blinky.c
@@ -3,11 +3,11 @@
int main() {
int d;
// Configure pins
- PE_DDR = 0x80;
7
- PE_CR1 = 0x80;
+ PB_DDR = 0x20;
+ PB_CR1 = 0x20;
8
// Loop
9
do {
10
- PE_ODR ^= 0x80;
+ PB_ODR ^= 0x20;
11
for(d = 0; d < 29000; d++) { }
12
} while(1);
13
}
stm8l.h examples/sdcc-examples-stm8/stm8l.hstm8l.h renamed to examples/sdcc-examples-stm8/stm8l.h
uart.c examples/sdcc-examples-stm8/uart.cuart.c renamed to examples/sdcc-examples-stm8/uart.c
0 commit comments