forgotten files

This commit is contained in:
bg 2009-08-06 13:35:36 +00:00
parent 4f50c75ee5
commit 8f855d283a
2 changed files with 91 additions and 0 deletions

42
test_src/hexdigit_tab.S Normal file
View File

@ -0,0 +1,42 @@
/* hexdigit_tab.S */
/*
* This file is part of AnonAccess, an access system which can be used
* to open door or doing other things with an anonymity featured
* account managment.
* Copyright (C) 2006, 2007, 2008 Daniel Otte (daniel.otte@rub.de)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
.global hexdigit_tab_P
hexdigit_tab_P:
.global hexdigit_tab_uc_P
hexdigit_tab_uc_P:
.byte '0','1','2','3'
.byte '4','5','6','7'
.byte '8','9','A','B'
.byte 'C','D','E','F'
.global hexdigit_tab_lc_P
hexdigit_tab_lc_P:
.byte '0','1','2','3'
.byte '4','5','6','7'
.byte '8','9','a','b'
.byte 'c','d','e','f'

49
test_src/hexdigit_tab_c.c Normal file
View File

@ -0,0 +1,49 @@
/* hexdigit_tab.c */
/*
* This file is part of AnonAccess, an access system which can be used
* to open door or doing other things with an anonymity featured
* account managment.
* Copyright (C) 2006, 2007, 2008 Daniel Otte (daniel.otte@rub.de)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <avr/pgmspace.h>
#include "hexdigit_tab.h"
char hexdigit_tab_P[] PROGMEM =
{'0','1','2','3',
'4','5','6','7',
'8','9','A','B',
'C','D','E','F'};
char hexdigit_tab_uc_P[] PROGMEM =
{'0','1','2','3',
'4','5','6','7',
'8','9','A','B',
'C','D','E','F'};
char hexdigit_tab_lc_P[] PROGMEM =
{'0','1','2','3',
'4','5','6','7',
'8','9','a','b',
'c','d','e','f'};