main
Last change
on this file since c2c5ac9 was c2c5ac9, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago |
Make XTK work (sort of).
- Switch to atmega48P. No need for an atmega8 here.
- Fix the XT keyboard protocol generation. It's fairly simple once understood.
- Fix (mostly) the scancode conversion table
Things are rather glitchy, still. Since the XT protocol is not time critical at
all, this points to either:
- Problems in the PS/2 scanning code
- Errors in the scancode map
git-svn-id: svn://pulkomandy.tk/avrstuff@101 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe
|
-
Property mode
set to
100644
|
File size:
790 bytes
|
Line | |
---|
1 | CC := $(shell { which avr-gcc || which avr-gcc-x86; } 2>/dev/null)
|
---|
2 | OBJCOPY := $(shell { which avr-objcopy || which avr-objcopy-x86; } 2>/dev/null)
|
---|
3 | AVRDUDE := $(shell { which avrdude || which avrdude-x86; } 2>/dev/null)
|
---|
4 |
|
---|
5 | MCU=atmega48p
|
---|
6 |
|
---|
7 | keyboard.hex: keyboard.bin
|
---|
8 | $(OBJCOPY) -j .text -j .data -O ihex $^ $@
|
---|
9 |
|
---|
10 | keyboard.bin: keyboard.o main.o
|
---|
11 | $(CC) $^ -o $@ -mmcu=$(MCU) -Os
|
---|
12 |
|
---|
13 | main.o: main.c ../../../libs/ps2_keyboard/ps2_keyboard.h
|
---|
14 | $(CC) -std=c99 -c $< -mmcu=$(MCU) -Os -o $@ -Os
|
---|
15 |
|
---|
16 | keyboard.o: ../../../libs/ps2_keyboard/ps2_keyboard.c ../../../libs/ps2_keyboard/ps2_keyboard.h ../../../libs/ps2_keyboard/keymap.h
|
---|
17 | $(CC) -DCALLBACK="callback();" -c $< -mmcu=$(MCU) -Os -o $@
|
---|
18 |
|
---|
19 | clean:
|
---|
20 | rm *.o *.bin *.hex
|
---|
21 |
|
---|
22 | flash: keyboard.hex
|
---|
23 | $(AVRDUDE) -c usbasp -p $(MCU) -Uflash:w:$^
|
---|
Note:
See
TracBrowser
for help on using the repository browser.