Compare commits

..

No commits in common. "0f6256d9cee192b153582c2346b9f2e252d187a6" and "a6ab36790f1aff0b936c2a008e41097e2375d11e" have entirely different histories.

2 changed files with 0 additions and 12 deletions

View file

@ -1,7 +0,0 @@
# AVR Playground
[QEMU AVR Docs](https://www.qemu.org/docs/master/system/target-avr.html)
```bash
sudo dnf install avr-binutils avr-libc avr-gcc avr-gcc-c++ avrdude qemu-system-avr
```

View file

@ -6,7 +6,6 @@ PROGRAMMER = usbasp
# MCU # MCU
MCU = atmega328p MCU = atmega328p
QEMU_MACHINE_NAME = uno
# Compiler flags # Compiler flags
CFLAGS = -std=c99 -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3 CFLAGS = -std=c99 -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3
@ -39,10 +38,6 @@ $(TARGET).hex: $(TARGET).elf
flash: $(TARGET).hex flash: $(TARGET).hex
avrdude -p $(MCU) -c $(PROGRAMMER) -U flash:w:$(TARGET).hex avrdude -p $(MCU) -c $(PROGRAMMER) -U flash:w:$(TARGET).hex
# Run the program in QEMU
qemu: $(TARGET).elf
qemu-system-avr -machine $(QEMU_MACHINE_NAME) -bios $(TARGET).elf
# Clean # Clean
clean: clean:
rm -f $(OBJS) $(TARGET).elf $(TARGET).hex rm -f $(OBJS) $(TARGET).elf $(TARGET).hex