- Timestamp:
- Sep 8, 2019, 9:09:42 AM (5 years ago)
- Branches:
- main
- Children:
- c956fd4
- Parents:
- 6f22754
- Location:
- test_uart
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test_uart/Makefile
r6f22754 re5dd493 1 MCU=atmega8 2 BAUD=57600 3 FCPU=16000000 4 PROG=avr109 -P /dev/ports/usb0 -b $(BAUD) -u 5 1 6 testusart.hex: testusart.bin 2 7 avr-objcopy -j .text -j .data -O ihex testusart.bin testusart.hex 3 8 4 9 testusart.bin: usart.o main.o 5 avr-gcc usart.o main.o -o testusart.bin -mmcu= atmega8-Os10 avr-gcc usart.o main.o -o testusart.bin -mmcu=$(MCU) -Os 6 11 7 12 main.o: testuart.c ../libs/usart/usart.h 8 avr-gcc -c testuart.c -mmcu= atmega8 -Os -o main.o -mmcu=atmega8 -Os13 avr-gcc -c testuart.c -mmcu=$(MCU) -Os -o main.o 9 14 10 15 usart.o: ../libs/usart/usart.c ../libs/usart/usart.h 11 avr-gcc -c ../libs/usart/usart.c -o usart.o -mmcu=atmega8 -Os 16 avr-gcc -c ../libs/usart/usart.c -o usart.o -mmcu=$(MCU) -DBAUD=$(BAUD) -DF_CPU=$(FCPU) -Os 17 18 flash: testusart.hex 19 avrdude -c $(PROG) -p $(MCU) -Uflash:w:testusart.hex 20 21 clean: 22 rm *.bin *.o *.hex -
test_uart/testuart.c
r6f22754 re5dd493 3 3 void main(void) 4 4 { 5 USARTInit( 51);5 USARTInit(); 6 6 USARTWriteChar('Z'); 7 7 while(1); -
test_uart/testusart.hex
r6f22754 re5dd493 2 2 :1000100012C011C010C00FC00EC00DC00CC00BC06C 3 3 :100020000AC009C008C011241FBECFE5D4E0DEBF5E 4 :10003000CDBF26D02 BC0E4CF89B990BD86E880BD665 :100040008 8E18AB908955D9BFECF8CB908955F9BC66 :10005000 FECF8CB10895982F92959F709A3010F42E7 :10006000 905D01C0995C5D9BFECF9CB98F708A301A8 :10007000 10F4805D01C0895C5D9BFECF8CB90895529 : 1000800083E390E0D9DF8AE5DEDFFFCFF894FFCF8E4 :10003000CDBF26D029C0E4CF10BC82E289B9599A3D 5 :1000400086E880BD88E18AB908955D9BFECF8CB9B2 6 :1000500008955F9BFECF8CB10895CF93C82F8295F2 7 :100060008F708A3048F4805DF0DF8C2F8F708A307B 8 :1000700028F4805DCF91E9CF895CF6CF895CFACF17 9 :0C008000DBDF8AE5E2DFFFCFF894FFCF62 10 10 :00000001FF
Note:
See TracChangeset
for help on using the changeset viewer.