Changeset ea32107 in avrstuff for kbd/common.mk


Ignore:
Timestamp:
Jul 31, 2014, 10:13:43 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
87ab18e
Parents:
c7cc629
Message:

kbd: working XTK on ATtiny2313

  • Move more stuff to common.mk and handle multicpu support
  • Fix some pins mixups to get things working

git-svn-id: svn://pulkomandy.tk/avrstuff@113 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/common.mk

    rc7cc629 rea32107  
    77LIBS=../../../libs
    88
     9CFLAGS=-DF_CPU=$(F_CPU) -DBAUD=$(BAUD) -mmcu=$(MCU) -Os
     10
     11# default target
     12all: $(MCU).hex
     13
    914# Generic rules
    1015%.hex: %.bin
    1116        $(OBJCOPY) -j .text -j .data -O ihex $^ $@
    1217
     18$(MCU):
     19        mkdir -p $(MCU)
     20
     21flash: $(MCU).hex
     22        $(AVRDUDE) -c usbasp -p $(MCU) -Uflash:w:$^
     23
    1324clean:
    1425        rm *.bin *.o *.hex
Note: See TracChangeset for help on using the changeset viewer.