main
Last change
on this file since ea32107 was ea32107, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago |
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
|
-
Property mode
set to
100644
|
File size:
601 bytes
|
Line | |
---|
1 | # Board settings
|
---|
2 |
|
---|
3 | # K4KUSB
|
---|
4 | MCU=attiny2313
|
---|
5 | F_CPU=12000000
|
---|
6 |
|
---|
7 | # Generic settings
|
---|
8 | BAUD=9600
|
---|
9 |
|
---|
10 |
|
---|
11 | include ../../common.mk
|
---|
12 |
|
---|
13 | $(MCU).bin: $(MCU)/keyboard.o $(MCU)/usart.o $(MCU)/main.o
|
---|
14 | $(CC) $^ -o $@ -mmcu=$(MCU) -Os
|
---|
15 |
|
---|
16 | $(MCU)/main.o: main.c $(LIBS)/usart/usart.h $(LIBS)/ps2_keyboard/ps2_keyboard.h $(MCU)
|
---|
17 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
18 |
|
---|
19 | $(MCU)/usart.o: $(LIBS)/usart/usart.c $(LIBS)/usart/usart.h $(MCU)
|
---|
20 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
21 |
|
---|
22 | $(MCU)/keyboard.o: $(LIBS)/ps2_keyboard/ps2_keyboard.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(LIBS)/ps2_keyboard/keymap.h $(MCU)
|
---|
23 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.