Skip to content

Commit

Permalink
Move source into separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rla committed Jul 17, 2014
1 parent 36e56d3 commit d2ca9a5
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
hw/*.s#*
pc/node_modules
avr/*.elf
avr/*.hex
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ the following features:

The project is still work-in-progress.

## Hardware

### Building

To build the HEX binary for the controller:

cd avr
make

## Changelog

* 2014-02 Physical hardware design is ready.
* 2014-02-01 Physical hardware design is ready.

## License

Expand Down
15 changes: 6 additions & 9 deletions avr/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
all: controller.hex
all: main.hex

%.elf: %.c
main.elf: src/main.c src/*.c
avr-gcc -std=c99 -mmcu=atmega88pa -Wall -Os -o $@ $<

%.hex: %.elf
main.hex: main.elf
avr-objcopy -j .text -j .data -O ihex $< $@

burn: controller.hex
avrdude -c avrispmkii -p m88p -U flash:w:$<

burn-usart: usart_echo.hex
burn: main.hex
avrdude -c avrispmkii -p m88p -U flash:w:$<

burn-fuse:
avrdude -c avrispmkii -p m88p -U lfuse:w:0xf7:m

clean:
rm -r controller.hex
rm -r main.hex

.PHONY: burn burn-usart burn-fuse clean
.PHONY: burn burn-fuse clean
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d2ca9a5

Please sign in to comment.