Code cleanup
- Changing header file ifndef define to pragma once's - Removed duplicate output_com.h's
This commit is contained in:
parent
03f60df94d
commit
5f262ea4b6
75 changed files with 158 additions and 650 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __KEYMAP_H
|
||||
#define __KEYMAP_H
|
||||
#pragma once
|
||||
|
||||
|
||||
// ----- Variables -----
|
||||
|
@ -34,6 +33,3 @@ static uint8_t DefaultMap_Lookup[] = {
|
|||
0, // 0x04
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -61,5 +60,3 @@ void Scan_finishedWithUSBBuffer( uint8_t sentKeys );
|
|||
|
||||
void Scan_resetKeyboard();
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -74,7 +73,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2013-2014 by Jacob Alexander
|
||||
/* Copyright (C) 2013-2015 by Jacob Alexander
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -14,8 +14,7 @@
|
|||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -56,6 +55,3 @@ uint8_t Scan_sendData( uint8_t dataPayload );
|
|||
void Scan_finishedWithMacro( uint8_t sentKeys );
|
||||
void Scan_finishedWithOutput( uint8_t sentKeys );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -61,6 +60,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2013-2014 by Jacob Alexander
|
||||
/* Copyright (C) 2013-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -63,7 +62,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -67,7 +66,3 @@ static const uint8_t matrix_pinout[][MAX_COL_SIZE + 1] = {
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <cli.h>
|
||||
#include <led.h>
|
||||
#include <print.h>
|
||||
#include <led_conf.h> // Located with scan_loop.c
|
||||
|
||||
// Local Includes
|
||||
#include "led_scan.h"
|
||||
|
@ -139,6 +140,8 @@ const uint8_t LED_ledEnableMask[] = {
|
|||
0x43, 0x43, // C9-1 -> C9-16
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
const uint8_t LED_ledEnableMask[] = {
|
||||
0xE8, // I2C address
|
||||
0x00, // Starting register address
|
||||
|
@ -153,8 +156,10 @@ const uint8_t LED_ledEnableMask[] = {
|
|||
0x00, 0x00, // C8-1 -> C8-16
|
||||
0x00, 0x00, // C9-1 -> C9-16
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
// XXX Pre-fill example of buffers
|
||||
const uint8_t examplePage[] = {
|
||||
0xE8, // I2C address
|
||||
|
@ -169,8 +174,8 @@ const uint8_t examplePage[] = {
|
|||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // C8-1 -> C8-16
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // C9-1 -> C9-16
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
// XXX Pre-fill example of buffers
|
||||
const uint8_t examplePage[] = {
|
||||
0xE8, // I2C address
|
||||
|
@ -185,7 +190,6 @@ const uint8_t examplePage[] = {
|
|||
0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, // C8-1 -> C8-16
|
||||
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, // C9-1 -> C9-16
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
@ -429,15 +433,14 @@ inline void LED_setup()
|
|||
// Initialize I2C
|
||||
I2C_setup();
|
||||
|
||||
/* TODO Make work
|
||||
// Zero out Frame Registers
|
||||
// This needs to be done before disabling the hardware shutdown (or the leds will do undefined things)
|
||||
LED_zeroPages( 0x0B, 1, 0x00, 0x0C ); // Control Registers
|
||||
|
||||
// Disable Hardware shutdown of ISSI chip (pull high)
|
||||
GPIOD_PDDR |= (1<<1);
|
||||
PORTD_PCR1 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||
GPIOD_PSOR |= (1<<1);
|
||||
GPIOB_PDDR |= (1<<16);
|
||||
PORTB_PCR16 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||
GPIOB_PSOR |= (1<<16);
|
||||
|
||||
// Clear LED Pages
|
||||
LED_zeroPages( 0x00, 8, 0x00, 0xB4 ); // LED Registers
|
||||
|
@ -447,7 +450,6 @@ inline void LED_setup()
|
|||
|
||||
// Disable Software shutdown of ISSI chip
|
||||
LED_writeReg( 0x0A, 0x01, 0x0B );
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this file. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __LED_SCAN_H
|
||||
#define __LED_SCAN_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -29,6 +28,3 @@
|
|||
void LED_setup();
|
||||
uint8_t LED_scan();
|
||||
|
||||
|
||||
#endif // __LED_SCAN_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011-2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2013-2014 by Jacob Alexander
|
||||
/* Copyright (C) 2013-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __KEYMAP_H
|
||||
#define __KEYMAP_H
|
||||
#pragma once
|
||||
|
||||
// This file contains various key layouts for the Sanyo MBC-55X Computer Keyboard
|
||||
|
||||
|
@ -287,5 +286,3 @@ static uint8_t DefaultMap_Lookup[] = {
|
|||
0, // 0xFF
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2013,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2013-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -55,6 +54,3 @@ GPIO_Pin Matrix_rows[] = { gpio(D,1), gpio(D,2), gpio(D,3), gpio(D,4), gpio(D,5)
|
|||
// Define type of scan matrix
|
||||
Config Matrix_type = Config_Pulldown;
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -39,6 +38,3 @@ uint8_t Scan_loop( void );
|
|||
void Scan_finishedWithMacro( uint8_t sentKeys ); // Called by Macro Module
|
||||
void Scan_finishedWithOutput( uint8_t sentKeys ); // Called by Output Module
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Macros -----
|
||||
|
||||
|
@ -58,6 +57,3 @@ GPIO_Pin Matrix_rows[] = { gpio(D,1), gpio(D,2), gpio(D,3), gpio(D,4), gpio(D,5)
|
|||
// Define type of scan matrix
|
||||
Config Matrix_type = Config_Pulldown;
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -39,6 +38,3 @@ uint8_t Scan_loop( void );
|
|||
void Scan_finishedWithMacro( uint8_t sentKeys ); // Called by Macro Module
|
||||
void Scan_finishedWithOutput( uint8_t sentKeys ); // Called by Output Module
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_SCAN_H
|
||||
#define __MATRIX_SCAN_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -140,6 +139,3 @@ typedef struct KeyState {
|
|||
void Matrix_setup();
|
||||
void Matrix_scan( uint16_t scanNum );
|
||||
|
||||
|
||||
#endif // __MATRIX_SCAN_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_SETUP_H
|
||||
#define __MATRIX_SETUP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Macros -----
|
||||
|
||||
|
@ -30,6 +29,3 @@
|
|||
#define Matrix_rowsNum sizeof( Matrix_rows ) / sizeof( GPIO_Pin )
|
||||
#define Matrix_maxKeys sizeof( Matrix_scanArray ) / sizeof( KeyState )
|
||||
|
||||
|
||||
#endif // __MATRIX_SETUP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __KEYMAP_H
|
||||
#define __KEYMAP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Variables -----
|
||||
|
||||
|
@ -114,6 +113,3 @@ static uint8_t DefaultMap_Lookup[] = {
|
|||
0, // 0x55
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __KEYMAP_H
|
||||
#define __KEYMAP_H
|
||||
#pragma once
|
||||
|
||||
// This file contains various key layouts for the SKM 67001 Keyboard from the Olympia Professional ES 105 Typewriter
|
||||
|
||||
|
@ -116,6 +115,3 @@ static uint8_t DefaultMap_Lookup[] = {
|
|||
0, // 0x55
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
/* Copyright (C) 2012 by Jacob Alexander
|
||||
*
|
||||
/* Copyright (C) 2012,2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -73,7 +72,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this file. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __LCD_SCAN_H
|
||||
#define __LCD_SCAN_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -29,6 +28,3 @@
|
|||
void LCD_setup();
|
||||
uint8_t LCD_scan();
|
||||
|
||||
|
||||
#endif // __LCD_SCAN_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,9 +19,6 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
// Compiler Includes
|
||||
|
@ -61,6 +58,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,9 +19,6 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
// Compiler Includes
|
||||
|
@ -62,6 +59,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
* along with this file. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CONNECT_SCAN_H
|
||||
#define __CONNECT_SCAN_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -117,6 +116,3 @@ typedef struct AnimationCommand {
|
|||
void Connect_setup( uint8_t master );
|
||||
void Connect_scan();
|
||||
|
||||
|
||||
#endif // __CONNECT_SCAN_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -61,6 +60,3 @@ void Scan_lockKeyboard( void );
|
|||
void Scan_unlockKeyboard( void );
|
||||
void Scan_resetKeyboard( void );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_SCAN_H
|
||||
#define __MATRIX_SCAN_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -119,5 +118,3 @@
|
|||
void matrix_pinSetup( uint8_t *matrix, uint8_t scanType );
|
||||
void matrix_scan( uint8_t *matrix, uint8_t *detectArray );
|
||||
|
||||
#endif // __MATRIX_SCAN_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __MATRIX_H
|
||||
#define __MATRIX_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -147,7 +146,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __MATRIX_H
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2011-2012,2014 by Jacob Alexander
|
||||
/* Copyright (C) 2011-2012,2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SCAN_LOOP_H
|
||||
#define __SCAN_LOOP_H
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -63,6 +62,3 @@ uint8_t Scan_loop( void );
|
|||
void Scan_finishedWithBuffer( uint8_t sentKeys );
|
||||
void Scan_finishedWithUSBBuffer( uint8_t sentKeys );
|
||||
|
||||
|
||||
#endif // __SCAN_LOOP_H
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue