Changeset c2c5ac9 in avrstuff for kbd/xtk/code/Makefile


Ignore:
Timestamp:
Jul 23, 2014, 11:19:14 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
39e523d
Parents:
071dc14
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/xtk/code/Makefile

    r071dc14 rc2c5ac9  
    22OBJCOPY := $(shell { which avr-objcopy || which avr-objcopy-x86; } 2>/dev/null)
    33AVRDUDE := $(shell { which avrdude || which avrdude-x86; } 2>/dev/null)
     4
     5MCU=atmega48p
    46
    57keyboard.hex: keyboard.bin
     
    79
    810keyboard.bin: keyboard.o main.o
    9         $(CC) $^ -o $@ -mmcu=atmega8 -Os
     11        $(CC) $^ -o $@ -mmcu=$(MCU) -Os
    1012
    1113main.o: main.c ../../../libs/ps2_keyboard/ps2_keyboard.h
    12         $(CC) -std=c99 -c $< -mmcu=atmega8 -Os -o $@ -mmcu=atmega8 -Os
     14        $(CC) -std=c99 -c $< -mmcu=$(MCU) -Os -o $@ -Os
    1315
    1416keyboard.o: ../../../libs/ps2_keyboard/ps2_keyboard.c ../../../libs/ps2_keyboard/ps2_keyboard.h ../../../libs/ps2_keyboard/keymap.h
    15         $(CC) -DCALLBACK="callback();" -c $< -mmcu=atmega8 -Os -o $@
     17        $(CC) -DCALLBACK="callback();" -c $< -mmcu=$(MCU) -Os -o $@
     18
     19clean:
     20        rm *.o *.bin *.hex
    1621
    1722flash: keyboard.hex
    18         $(AVRDUDE) -c usbasp -p atmega8 -Uflash:w:$^
     23        $(AVRDUDE) -c usbasp -p $(MCU) -Uflash:w:$^
Note: See TracChangeset for help on using the changeset viewer.