Changeset c7cc629 in avrstuff for kbd/ps2toserial/code/main.c


Ignore:
Timestamp:
Jul 31, 2014, 5:58:50 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
ea32107
Parents:
d31c2f5
Message:

Move the ASCII keymap out of ps2_keyboard.c.

It is used only by the serial converter, so save some flashspace for other projects.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/ps2toserial/code/main.c

    rd31c2f5 rc7cc629  
    22
    33#include "../../../libs/ps2_keyboard/ps2_keyboard.h"
     4#include "../../../libs/ps2_keyboard/keymap.h"
    45#include "../../../libs/usart/usart.h"
     6
     7
     8char render_scan_code(uint8_t data){
     9  char to_ret = pgm_read_byte(&(keymap[data])); //grab character from array
     10  if(shift) to_ret -= 0x20;
     11  return to_ret;
     12}
     13
    514
    615int main() {
Note: See TracChangeset for help on using the changeset viewer.