Compare commits
No commits in common. "0f6256d9cee192b153582c2346b9f2e252d187a6" and "a6ab36790f1aff0b936c2a008e41097e2375d11e" have entirely different histories.
0f6256d9ce
...
a6ab36790f
2 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
```
|
5
makefile
5
makefile
|
@ -6,7 +6,6 @@ PROGRAMMER = usbasp
|
|||
|
||||
# MCU
|
||||
MCU = atmega328p
|
||||
QEMU_MACHINE_NAME = uno
|
||||
|
||||
# Compiler flags
|
||||
CFLAGS = -std=c99 -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3
|
||||
|
@ -39,10 +38,6 @@ $(TARGET).hex: $(TARGET).elf
|
|||
flash: $(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:
|
||||
rm -f $(OBJS) $(TARGET).elf $(TARGET).hex
|
||||
|
|
Loading…
Reference in a new issue