source: avrstuff/kbd/xtk/code/Makefile@ 87ab18e

main
Last change on this file since 87ab18e was 87ab18e, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago

Drop hacked "shift" handling from libps2.

  • It's up to clients to do that if they wish so (useful if you're converting

to ASCII, for example, but not for a regular keyboard adapter)

Improve callback system to handle release events.

  • The callback would only be called for pressed keys, not for releases, leading

to weird results. Things work much better now in XTK.

  • Also ignore the E0 byte for extended keys in XTK. This avoids apps going

crazy as the Turbo XT BIOS doesn't handle it right.

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

  • Property mode set to 100644
File size: 498 bytes
Line 
1# Board settings
2
3# K4KUSB
4MCU=attiny2313
5F_CPU=12000000
6
7# Generic settings
8BAUD=9600
9
10
11include ../../common.mk
12
13$(MCU).bin: $(MCU)/keyboard.o $(MCU)/main.o
14 $(CC) $^ -o $@ -mmcu=$(MCU) -Os
15
16$(MCU)/main.o: main.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(MCU)
17 $(CC) $(CFLAGS) -std=c99 -c $< -o $@
18
19$(MCU)/keyboard.o: $(LIBS)/ps2_keyboard/ps2_keyboard.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(LIBS)/ps2_keyboard/keymap.h $(MCU)
20 $(CC) $(CFLAGS) -DCALLBACK="callback();" -c $< -o $@
Note: See TracBrowser for help on using the repository browser.