Changeset 87ab18e in avrstuff for kbd/xtk/code/Makefile


Ignore:
Timestamp:
Jul 31, 2014, 11:00:37 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
0010058
Parents:
ea32107
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/xtk/code/Makefile

    rea32107 r87ab18e  
    1 MCU=atmega48p
     1# Board settings
     2
     3# K4KUSB
     4MCU=attiny2313
     5F_CPU=12000000
     6
     7# Generic settings
     8BAUD=9600
     9
    210
    311include ../../common.mk
    412
    5 all: keyboard.hex
    6 
    7 keyboard.bin: keyboard.o main.o
     13$(MCU).bin: $(MCU)/keyboard.o $(MCU)/main.o
    814        $(CC) $^ -o $@ -mmcu=$(MCU) -Os
    915
    10 main.o: main.c $(LIBS)/ps2_keyboard/ps2_keyboard.h
    11         $(CC) -std=c99 -c $< -mmcu=$(MCU) -Os -o $@ -Os
     16$(MCU)/main.o: main.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(MCU)
     17        $(CC) $(CFLAGS) -std=c99 -c $< -o $@
    1218
    13 keyboard.o: $(LIBS)/ps2_keyboard/ps2_keyboard.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(LIBS)/ps2_keyboard/keymap.h
    14         $(CC) -DCALLBACK="callback();" -c $< -mmcu=$(MCU) -Os -o $@
    15 
    16 clean:
    17         rm *.o *.bin *.hex
    18 
    19 flash: keyboard.hex
    20         $(AVRDUDE) -c usbasp -p $(MCU) -Uflash:w:$^
     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 TracChangeset for help on using the changeset viewer.