44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
// -*- mode: C; tab-width: 4 ; indent-tabs-mode: nil -*-
|
|
//
|
|
// Universal Keyboard Project
|
|
// ASDF keyboard firmware
|
|
//
|
|
// asdf_arch_test.h
|
|
//
|
|
// Architecture-dependent definitions for the unit-testing ASDF software.
|
|
//
|
|
// Copyright 2019 David Fenyes
|
|
//
|
|
// 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 <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
#if !defined (ASDF_ARCH_H)
|
|
#define ASDF_ARCH_H
|
|
|
|
#define FLASH
|
|
#define FLASH_READ (a) (*(a))
|
|
#define FLASH_READ_MATRIX_ELEMENT(mat,row,col) (mat)[(row)][(col)]
|
|
|
|
void asdf_arch_init(void);
|
|
void asdf_arch_tick(void);
|
|
uint8_t asdf_arch_read_row(uint8_t row);
|
|
|
|
#endif // !defined (ASDF_ARCH_H)
|
|
|
|
//-------|---------|---------+---------+---------+---------+---------+---------+
|
|
// Above line is 80 columns, and should display completely in the editor.
|
|
|
|
|
|
|