-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interface clavier ps/2 avec msp430g2553 sur TI launchpad
- Loading branch information
0 parents
commit 99a1fca
Showing
10 changed files
with
1,210 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?ccsproject version="1.0"?> | ||
<projectOptions> | ||
<deviceVariant value="MSP430G2553"/> | ||
<deviceFamily value="MSP430"/> | ||
<codegenToolVersion value="4.1.5"/> | ||
<isElfFormat value="true"/> | ||
<connection value="common/targetdb/connections/TIMSP430-USB.xml"/> | ||
<linkerCommandFile value="lnk_msp430g2553.cmd"/> | ||
<rts value="libc.a"/> | ||
<templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate_msp430,"/> | ||
</projectOptions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
################# | ||
## Eclipse | ||
################# | ||
|
||
*.pydevproject | ||
.project | ||
.metadata | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
|
||
################# | ||
## Visual Studio | ||
################# | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
|
||
[Dd]ebug/ | ||
[Rr]elease/ | ||
x64/ | ||
build/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
|
||
# MSTest test Results | ||
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.tmp_proj | ||
*.log | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
*.pidb | ||
*.log | ||
*.scc | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
*.cachefile | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
*.[Rr]e[Ss]harper | ||
|
||
# TeamCity is a build add-in | ||
_TeamCity* | ||
|
||
# DotCover is a Code Coverage Tool | ||
*.dotCover | ||
|
||
# NCrunch | ||
*.ncrunch* | ||
.*crunch*.local.xml | ||
|
||
# Installshield output folder | ||
[Ee]xpress/ | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish/ | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
*.pubxml | ||
|
||
# NuGet Packages Directory | ||
## TODO: If you have NuGet Package Restore enabled, uncomment the next line | ||
#packages/ | ||
|
||
# Windows Azure Build Output | ||
csx | ||
*.build.csdef | ||
|
||
# Windows Store app package directory | ||
AppPackages/ | ||
|
||
# Others | ||
sql/ | ||
*.Cache | ||
ClientBin/ | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*~ | ||
*.dbmdl | ||
*.[Pp]ublish.xml | ||
*.pfx | ||
*.publishsettings | ||
|
||
# RIA/Silverlight projects | ||
Generated_Code/ | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
UpgradeLog*.htm | ||
|
||
# SQL Server files | ||
App_Data/*.mdf | ||
App_Data/*.ldf | ||
|
||
############# | ||
## Windows detritus | ||
############# | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac crap | ||
.DS_Store | ||
|
||
|
||
############# | ||
## Python | ||
############# | ||
|
||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist/ | ||
build/ | ||
eggs/ | ||
parts/ | ||
var/ | ||
sdist/ | ||
develop-eggs/ | ||
.installed.cfg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Mr Developer | ||
.mr.developer.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* tranlation.h | ||
* | ||
* Created on: 2013-07-24 | ||
* Author: Jacques Desch�nes | ||
* Description: table de tanscription des codes clavier vers code ASCII pour clavier QWERTY | ||
* | ||
*------------------------------------------------ | ||
* R�f�rences: | ||
* http://retired.beyondlogic.org/keyboard/keybrd.htm#1 | ||
* http://www.computer-engineering.org/ | ||
* http://en.wikipedia.org/wiki/PS/2_keyboard | ||
* http://wiki.osdev.org/PS2_Keyboard | ||
*------------------------------------------------ | ||
*/ | ||
|
||
#ifndef QWERTY_H_ | ||
#define QWERTY_H_ | ||
|
||
#include "ps2-kbd.h" | ||
|
||
const t_scan2key translate[]={ // table de correspondance codes clavier -> ASCII (clavier QWERTY) | ||
{0x1c,'a'}, | ||
{0x32,'b'}, | ||
{0x21,'c'}, | ||
{0x23,'d'}, | ||
{0x24,'e'}, | ||
{0x2b,'f'}, | ||
{0x34,'g'}, | ||
{0x33,'h'}, | ||
{0x43,'i'}, | ||
{0x3b,'j'}, | ||
{0x42,'k'}, | ||
{0x4b,'l'}, | ||
{0x3a,'m'}, | ||
{0x31,'n'}, | ||
{0x44,'o'}, | ||
{0x4d,'p'}, | ||
{0x15,'q'}, | ||
{0x2d,'r'}, | ||
{0x1b,'s'}, | ||
{0x2c,'t'}, | ||
{0x3c,'u'}, | ||
{0x2a,'v'}, | ||
{0x1d,'w'}, | ||
{0x22,'x'}, | ||
{0x35,'y'}, | ||
{0x1a,'z'}, | ||
{0x45,'0'}, | ||
{0x16,'1'}, | ||
{0x1e,'2'}, | ||
{0x26,'3'}, | ||
{0x25,'4'}, | ||
{0x2e,'5'}, | ||
{0x36,'6'}, | ||
{0x3d,'7'}, | ||
{0x3e,'8'}, | ||
{0x46,'9'}, | ||
{0x29,' '}, | ||
{0x4e,'-'}, | ||
{0x55,'='}, | ||
{0x0e,'`'}, | ||
{0x0d,'\t'}, | ||
{0x54,'['}, | ||
{0x5b,']'}, | ||
{0x4c,';'}, | ||
{0x41,','}, | ||
{0x49,'.'}, | ||
{0x4a,'/'}, | ||
{0x66,8}, // BACKSPACE | ||
{0x0d,9}, // TAB | ||
{0x5a,'\r'}, // CR | ||
{0x76,27}, // ESC | ||
{KP0,'0'}, | ||
{KP1,'1'}, | ||
{KP2,'2'}, | ||
{KP3,'3'}, | ||
{KP4,'4'}, | ||
{KP5,'5'}, | ||
{KP6,'6'}, | ||
{KP7,'7'}, | ||
{KP8,'8'}, | ||
{KP9,'9'}, | ||
{KPDIV,'/'}, | ||
{KPMUL,'*'}, | ||
{KPMINUS,'-'}, | ||
{KPPLUS,'+'}, | ||
{KPENTER,'\r'}, | ||
{KPDOT,'.'}, | ||
{0,0} | ||
}; | ||
|
||
const t_scan2key shifted_key[]={ | ||
{0x0e,'~'}, | ||
{0x16,'!'}, | ||
{0x1e,'@'}, | ||
{0x26,'#'}, | ||
{0x25,'$'}, | ||
{0x2e,'%'}, | ||
{0x36,'^'}, | ||
{0x3d,'&'}, | ||
{0x3e,'*'}, | ||
{0x46,'('}, | ||
{0x45,')'}, | ||
{0x4e,'_'}, | ||
{0x55,'+'}, | ||
{0x5d,'\\'}, | ||
{0x4c,':'}, | ||
{0x52,'"'}, | ||
{0x41,'<'}, | ||
{0x49,'>'}, | ||
{0x4a,'?'}, | ||
{0,0} | ||
}; | ||
|
||
const t_scan2key alt_char[]={ | ||
{0,0} | ||
}; | ||
|
||
const t_scan2key xt_char[]={ | ||
{0x4a,'/'}, // keypad '/' | ||
{0x5a,'\r'},// keypad ENTER | ||
{0,0} | ||
}; | ||
|
||
#endif /* QWERTY_H_ */ |
Oops, something went wrong.