]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Code cleanup
authorJacob Alexander <haata@kiibohd.com>
Sun, 14 Jun 2015 20:56:56 +0000 (13:56 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sun, 14 Jun 2015 21:33:40 +0000 (14:33 -0700)
- Changing header file ifndef define to pragma once's
- Removed duplicate output_com.h's

75 files changed:
Bootloader/_buildvars.h
Bootloader/debug.h
Bootloader/dfu.desc.h
Bootloader/dfu.h
Bootloader/flash.h
Bootloader/ftfl.h
Bootloader/mchck-cdefs.h
Bootloader/mchck.h
Bootloader/sim.h
Bootloader/usb-common.h
Bootloader/usb-internal.h
Bootloader/usb.h
Bootloader/usbotg.h
Debug/cli/cli.h
Debug/led/led.h
Debug/print/print.h
Lib/Interrupts.h
Lib/MacroLib.h
Lib/MainLib.h
Lib/OutputLib.h
Lib/ScanLib.h
Lib/_buildvars.h
Lib/delay.h
Lib/mk20dx.h
Macro/PartialMap/kll.h
Macro/PartialMap/macro.h
Macro/PartialMap/usb_hid.h
Macro/basic/macro.h
Macro/buffer/macro.h
Output/pjrcUSB/arm/usb_desc.h
Output/pjrcUSB/arm/usb_dev.h
Output/pjrcUSB/arm/usb_keyboard.h
Output/pjrcUSB/arm/usb_mem.h
Output/pjrcUSB/arm/usb_serial.h
Output/pjrcUSB/avr/usb_keyboard_serial.h
Output/pjrcUSB/output_com.h
Output/uartOut/arm/uart_serial.h
Output/uartOut/output_com.h [deleted file]
Output/uartOut/setup.cmake
Output/usbMuxUart/output_com.h [deleted file]
Scan/ADCTest/defaultMap.h
Scan/ADCTest/scan_loop.h
Scan/BETKB/scan_loop.h
Scan/BudKeypad/matrix.h
Scan/DPH/scan_loop.h
Scan/EpsonQX-10/scan_loop.h
Scan/FACOM6684/scan_loop.h
Scan/HP150/scan_loop.h
Scan/HeathZenith/matrix.h
Scan/IBMConvertible/matrix.h
Scan/ISSILed/led_scan.c
Scan/ISSILed/led_scan.h
Scan/Kaypro1/scan_loop.h
Scan/MBC-55X/defaultMap.h
Scan/MBC-55X/scan_loop.h
Scan/MD1/matrix.h
Scan/MD1/scan_loop.h
Scan/MD2/matrix.h
Scan/MD2/scan_loop.h
Scan/MatrixARM/matrix_scan.h
Scan/MatrixARM/matrix_setup.h
Scan/MicroSwitch8304/scan_loop.h
Scan/SKM67001/customSKM.h
Scan/SKM67001/defaultMap.h
Scan/SKM67001/matrix.h
Scan/STLcd/lcd_scan.h
Scan/SonyNEWS/scan_loop.h
Scan/SonyOA-S3400/scan_loop.h
Scan/Tandy1000/scan_loop.h
Scan/UARTConnect/connect_scan.h
Scan/UnivacF3W9/scan_loop.h
Scan/matrix/matrix_scan.h
Scan/matrix/matrix_template.h
Scan/matrix/scan_loop.h
main.c

index 4097a7a368142e89808616a063667c684f3337fa..1d9267ad964d36515fbaa44303cf9f52880915c7 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __buildvars_h
-#define __buildvars_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -42,5 +41,3 @@
 #define VENDOR_ID         @BOOT_VENDOR_ID@
 #define PRODUCT_ID        @BOOT_PRODUCT_ID@
 
 #define VENDOR_ID         @BOOT_VENDOR_ID@
 #define PRODUCT_ID        @BOOT_PRODUCT_ID@
 
-#endif
-
index d73395a3a9b5b9307dbb58a98cb4d5596dcf9968..83e9bac9db10815d44add7d52de12739f85b590f 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef debug_h__
-#define debug_h__
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -64,5 +63,3 @@ void printHex_op( uint32_t in, uint8_t op );
 #define printHex_op(in,op)
 #endif
 
 #define printHex_op(in,op)
 #endif
 
-#endif
-
index d5ebb1ae245d351037feeeacad49e851481a64b1..3ef80f4517bbebaadd4b4639dc12d0895fca9a41 100644 (file)
@@ -1,5 +1,5 @@
 // Originally Generated from MCHCK Toolkit
 // Originally Generated from MCHCK Toolkit
-/* Copyright (c) Jacob Alexander 2014 <haata@kiibohd.com>
+/* Copyright (c) Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __DFU_DESC_H
-#define __DFU_DESC_H
+#pragma once
 
 // ----- Local Includes -----
 
 
 // ----- Local Includes -----
 
@@ -39,5 +38,3 @@ struct usb_config_1 {
        struct dfu_function_desc usb_function_0;
 };
 
        struct dfu_function_desc usb_function_0;
 };
 
-#endif
-
index 1462746a24cba579fed4c0510e00decaf8da79b8..d4da289eb93b4caf60ba3ccde706dcb7636e8a97 100644 (file)
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _USB_DFU_H
-#define _USB_DFU_H
+#pragma once
 
 // ----- Compiler Includes -----
 
 
 // ----- Compiler Includes -----
 
@@ -171,4 +170,3 @@ void dfu_write_done( enum dfu_status, struct dfu_ctx *ctx );
 void dfu_init( dfu_setup_read_t setup_read, dfu_setup_write_t setup_write, dfu_finish_write_t finish_write, struct dfu_ctx *ctx );
 void dfu_app_init( dfu_detach_t detachcb );
 
 void dfu_init( dfu_setup_read_t setup_read, dfu_setup_write_t setup_write, dfu_finish_write_t finish_write, struct dfu_ctx *ctx );
 void dfu_app_init( dfu_detach_t detachcb );
 
-#endif
index 83a592a4f682b2b675c06bf7e042f1553d7b1bba..f35ac30d4deecb33c6935b837df7f01e9dca1c68 100644 (file)
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __FLASH_H
-#define __FLASH_H
+#pragma once
 
 // ----- Defines -----
 
 
 // ----- Defines -----
 
@@ -34,10 +33,7 @@ __attribute__((section(".ramtext.ftfl_submit_cmd"), long_call))
 int ftfl_submit_cmd(void);
 int flash_prepare_flashing(void);
 int flash_erase_sector(uintptr_t);
 int ftfl_submit_cmd(void);
 int flash_prepare_flashing(void);
 int flash_erase_sector(uintptr_t);
-//int flash_program_section(uintptr_t, size_t);
 int flash_program_sector(uintptr_t, size_t);
 int flash_program_longword(uintptr_t, uint8_t*);
 void *flash_get_staging_area(uintptr_t, size_t);
 
 int flash_program_sector(uintptr_t, size_t);
 int flash_program_longword(uintptr_t, uint8_t*);
 void *flash_get_staging_area(uintptr_t, size_t);
 
-#endif
-
index 033162c572304a2cca3cf7f18ba902b66f051457..9543d92844075e6160c9a0cc7483bbaf91d01038 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __FTFL_H
-#define __FTFL_H
+#pragma once
 
 // ----- Local Includes -----
 
 
 // ----- Local Includes -----
 
@@ -242,5 +241,3 @@ extern volatile struct FTFL_t FTFL;
 extern char FlexRAM[];
 extern struct FTFL_CONFIG_t FTFL_CONFIG;
 
 extern char FlexRAM[];
 extern struct FTFL_CONFIG_t FTFL_CONFIG;
 
-#endif
-
index 8bc2b20a39f975f7d3a7d0c6d1838c0aa47e3491..4f2eba128b165238352499ea26ca6a06227f5777 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _MCHCK_CDEFS_H
-#define _MCHCK_CDEFS_H
+#pragma once
 
 // ----- Compiler Includes -----
 
 
 // ----- Compiler Includes -----
 
@@ -134,5 +133,3 @@ typedef __CHAR16_TYPE__ char16_t;
                                )                                       \
                        )
 
                                )                                       \
                        )
 
-#endif
-
index 13bc3922409b9d7acf2097d6d37ea1bc169d01a7..de155baa0dde04164089e46aa589a95cc0e9ad86 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014=2015 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __MCHCK_H
-#define __MCHCK_H
+#pragma once
 
 // ----- Compiler Includes -----
 
 
 // ----- Compiler Includes -----
 
@@ -45,5 +44,3 @@ extern uint32_t _sidata, _sdata, _edata, _sbss, _ebss, _app_rom, _app_rom_end, _
 #include "flash.h"
 #include "usb.h"
 
 #include "flash.h"
 #include "usb.h"
 
-#endif
-
index dcb4f0c77a82bf8b78e3935206a55e2604df9e5e..d6dbb5fc2b5955fc2a4e2d88b4168f75c6cce84e 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __SIM_H
-#define __SIM_H
+#pragma once
 
 // ----- Local Includes -----
 
 
 // ----- Local Includes -----
 
@@ -328,5 +327,3 @@ CTASSERT_SIZE_BYTE(struct SIM_t, 0x1064);
 
 extern volatile struct SIM_t SIM;
 
 
 extern volatile struct SIM_t SIM;
 
-#endif
-
index 0857017f7fc439cbb351fad7cd3f444a3b09d318..cd58c785ab497ffb3a7ee086069752da1e77cad1 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _USB_COMMON_H
-#define _USB_COMMON_H
+#pragma once
 
 // ----- Enumerations -----
 
 
 // ----- Enumerations -----
 
@@ -56,5 +55,3 @@ enum {
        EP0_BUFSIZE = 64
 };
 
        EP0_BUFSIZE = 64
 };
 
-#endif
-
index 6d9210c212921438a20bf6a0a3ecda1f734b515c..57e0e277c1742ec33b0a541d1664532cf68a6440 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __USB_INTERNAL_H
-#define __USB_INTERNAL_H
+#pragma once
 
 /**
  * Internal driver structures
 
 /**
  * Internal driver structures
@@ -100,5 +99,3 @@ void usb_restart(void);
 void usb_enable(void);
 const struct usbd_config *usb_get_config_data(int config);
 
 void usb_enable(void);
 const struct usbd_config *usb_get_config_data(int config);
 
-#endif
-
index d03e6774979dbe1115f50788bcfa916bc33cce23..1a0dbf06ed4289e230696070208fffcd0c425bcd 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,8 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __USB_H
-#define __USB_H
+#pragma once
 
 // ----- Compiler Includes -----
 
 
 // ----- Compiler Includes -----
 
@@ -509,5 +508,3 @@ int usb_ep0_tx_cp(const void *, size_t, size_t, ep_callback_t, void *);
 
 #include "dfu.h"
 
 
 #include "dfu.h"
 
-#endif
-
index 5a617ce26499a067b4ec238a70f76a0289f21887..5d3cb248017873c2e7a68512265c392a725f40eb 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
 /* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
- * Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
+ * Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
  *
  * 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
  *
  * 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
@@ -15,6 +15,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#pragma once
+
 // ----- Local Includes -----
 
 #include "mchck.h"
 // ----- Local Includes -----
 
 #include "mchck.h"
index 89cff9985fffdba130736385b73310001b511901..97efd8aa6f80032cd6cccda47f79bcfe5c699064 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef cli_h__
-#define cli_h__
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -130,6 +129,3 @@ void cliFunc_reset   ( char* args );
 void cliFunc_restart ( char* args );
 void cliFunc_version ( char* args );
 
 void cliFunc_restart ( char* args );
 void cliFunc_version ( char* args );
 
-
-#endif
-
index 107fbc361b331aab07ec5b986e3561353e439e12..cd18ef87e6d69a0fb0ffce386ffe1892323b3ceb 100644 (file)
@@ -1,15 +1,15 @@
-/* Copyright (C) 2011-2013 by Jacob Alexander
- * 
+/* Copyright (C) 2011-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
  * 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:
  * 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 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
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __led_h
-#define __led_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -31,5 +30,3 @@
 void init_errorLED( void );
 void errorLED( uint8_t on );
 
 void init_errorLED( void );
 void errorLED( uint8_t on );
 
-#endif
-
index 95088192d49f1b0af727e84b7f9de81aca5c7ab9..adeb2c4849ed0286a6c0c0f5f09b82eadc79fc96 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef print_h__
-#define print_h__
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -116,5 +115,3 @@ uint16_t lenStr   ( char*  in );
 int16_t eqStr     ( char*  str1, char* str2 ); // Returns -1 if identical, last character of str1 comparison (0 if str1 is like str2)
 int numToInt      ( char* in ); // Returns the int representation of a string
 
 int16_t eqStr     ( char*  str1, char* str2 ); // Returns -1 if identical, last character of str1 comparison (0 if str1 is like str2)
 int numToInt      ( char* in ); // Returns the int representation of a string
 
-#endif
-
index 0eb4a9cdd2cf358ecc642bc9f5d59159a2ad4e15..a55dafcedbf27e4508615023512a55f9262d5ff8 100644 (file)
@@ -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
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -25,8 +25,7 @@
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
-#ifndef __INTERRUPTS_H
-#define __INTERRUPTS_H
+#pragma once
 
 // ARM
 #if defined(_mk20dx128_) || defined(_mk20dx128vlf5_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_)
 
 // ARM
 #if defined(_mk20dx128_) || defined(_mk20dx128vlf5_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_)
@@ -58,6 +57,3 @@
 
 #endif
 
 
 #endif
 
-
-#endif
-
index ea4617f6cdc59aeb51b3bbdd4f319b92a7fbff2a..541593c268285ca7380c5ade2dacc5f89e2ef4dd 100644 (file)
@@ -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
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,9 +23,7 @@
 // This include file decides which set of compiler family include files to use on typical Macro modules.
 // Additional includes should only be added to this file if they should be added to *all* Macro modules.
 
 // This include file decides which set of compiler family include files to use on typical Macro modules.
 // Additional includes should only be added to this file if they should be added to *all* Macro modules.
 
-
-#ifndef __MACROLIB_H
-#define __MACROLIB_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -50,6 +48,3 @@
 
 #endif
 
 
 #endif
 
-
-#endif
-
index 1206782dd53baca6e6a845d128a554e28b0efeb0..da75813039c87f39a1515e8fc92e76833499aad3 100644 (file)
@@ -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
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,9 +23,7 @@
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
-
-#ifndef __MAINLIB_H
-#define __MAINLIB_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -49,6 +47,3 @@
 
 #endif
 
 
 #endif
 
-
-#endif
-
index a8e3450b09b8120b9bad9de9867e7e45810755a1..701308e625687899201b757bafeba7e2cdecc719 100644 (file)
@@ -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
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,9 +23,7 @@
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
-
-#ifndef __OUTPUTLIB_H
-#define __OUTPUTLIB_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -46,6 +44,3 @@
 
 #endif
 
 
 #endif
 
-
-#endif
-
index b875ffbcd6b43993f665c207b2f83ec0fd3ac3a0..bbc4f4bf0831e0e4ef9a98af3afb315b7c452875 100644 (file)
@@ -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
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,9 +23,7 @@
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
 // This include file decides which set of compiler family include files to use on typical Scan modules.
 // Additional includes should only be added to this file if they should be added to *all* Scan modules.
 
-
-#ifndef __SCANLIB_H
-#define __SCANLIB_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -51,6 +49,3 @@
 
 #endif
 
 
 #endif
 
-
-#endif
-
index 717e325e7b1d94ec0968238166286fe08c1a7ea5..5ff5d0f76f494d1c28e435626b7bad766e26ba84 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __buildvars_h
-#define __buildvars_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -58,5 +57,3 @@
 #define VENDOR_ID               @VENDOR_ID@
 #define PRODUCT_ID              @PRODUCT_ID@
 
 #define VENDOR_ID               @VENDOR_ID@
 #define PRODUCT_ID              @PRODUCT_ID@
 
-#endif
-
index 992fcdac8e94695fdd4d11bd7280eeb305e11413..19f0425886113f1d564a3d7b8ddab7c0586a9c36 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modifications by Jacob Alexander 2013-2014
+ * Modifications by Jacob Alexander 2013-2015
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef __DELAY_H
-#define __DELAY_H
+#pragma once
 
 // ----- System Includes -----
 
 
 // ----- System Includes -----
 
@@ -85,5 +84,3 @@ uint32_t micros(void);
 
 void delay(uint32_t ms);
 
 
 void delay(uint32_t ms);
 
-#endif
-
index 0109f7f0d3f2babbd3411fc149bcef3a1a234577..aff530a824ddca44c9457cbcabb3ec8eafe79f34 100644 (file)
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef _mk20dx_h_
-#define _mk20dx_h_
+#pragma once
 
 // ----- Defines -----
 
 
 // ----- Defines -----
 
@@ -2090,5 +2089,3 @@ extern void portd_isr(void);
 extern void porte_isr(void);
 extern void software_isr(void);
 
 extern void porte_isr(void);
 extern void software_isr(void);
 
-#endif
-
index 492e1baf7ca0efe0a7b52a2c64f049cd2f672bb2..e5e964f0e2460f14720f54901a984c328875b522 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 by Jacob Alexander
+/* Copyright (C) 2014-2015 by Jacob Alexander
  *
  * This file is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * This file is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,8 +14,7 @@
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __kll_h
-#define __kll_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -252,7 +251,3 @@ typedef struct Layer {
 // Total number of layers
 #define LayerNum sizeof( LayerIndex ) / sizeof( Layer )
 
 // Total number of layers
 #define LayerNum sizeof( LayerIndex ) / sizeof( Layer )
 
-
-
-#endif // __kll_h
-
index 1d4717f24b23fde69adb464597f35b6f7bfef6dd..a165a458d503897c5b76ce17de9ff39713be5635 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 by Jacob Alexander
+/* Copyright (C) 2014-2015 by Jacob Alexander
  *
  * This file is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * This file is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,8 +14,7 @@
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __macro_h
-#define __macro_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -42,5 +41,3 @@ void Macro_triggerState( void *triggers, uint8_t num ); // triggers is of type T
 void Macro_process();
 void Macro_setup();
 
 void Macro_process();
 void Macro_setup();
 
-#endif
-
index f2dba32377273b205629c356194a88d0e1601194..a7d558180e4214a6bf5ae7377e5ab0f4e9ac1c0d 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __usb_hid_h
-#define __usb_hid_h
+#pragma once
 
 // ----- Defines -----
 
 
 // ----- Defines -----
 
 #define AC_DISTRIBUTE_VERTICALLY    0x29C
 // 0x29D-0xFFFF Reserved
 
 #define AC_DISTRIBUTE_VERTICALLY    0x29C
 // 0x29D-0xFFFF Reserved
 
-
-
-#endif
-
index 12a490b518a81f6dc487fd2e4fbd5dbb422b7377..41358d6e31438d3911e07a3de516b8993c6802b6 100644 (file)
@@ -1,15 +1,15 @@
-/* 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
  * 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:
  * 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 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
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __macro_h
-#define __macro_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -34,5 +33,3 @@
 void keyPressDetection( uint8_t *keys, uint8_t numberOfKeys, uint8_t *modifiers, uint8_t numberOfModifiers, uint8_t *map );
 void process_macros(void);
 
 void keyPressDetection( uint8_t *keys, uint8_t numberOfKeys, uint8_t *modifiers, uint8_t numberOfModifiers, uint8_t *map );
 void process_macros(void);
 
-#endif
-
index 12a490b518a81f6dc487fd2e4fbd5dbb422b7377..41358d6e31438d3911e07a3de516b8993c6802b6 100644 (file)
@@ -1,15 +1,15 @@
-/* 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
  * 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:
  * 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 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
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __macro_h
-#define __macro_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -34,5 +33,3 @@
 void keyPressDetection( uint8_t *keys, uint8_t numberOfKeys, uint8_t *modifiers, uint8_t numberOfModifiers, uint8_t *map );
 void process_macros(void);
 
 void keyPressDetection( uint8_t *keys, uint8_t numberOfKeys, uint8_t *modifiers, uint8_t numberOfModifiers, uint8_t *map );
 void process_macros(void);
 
-#endif
-
index 6eae0b648c786b7415c930dcf7f48c85fe31aedb..e3b6fb549d3869c098e21b48fa0af45409f958fb 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modified by Jacob Alexander (2013-2014)
+ * Modified by Jacob Alexander (2013-2015)
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef _usb_desc_h_
-#define _usb_desc_h_
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -126,6 +125,3 @@ extern const uint8_t usb_endpoint_config_table[NUM_ENDPOINTS];
 
 extern const usb_descriptor_list_t usb_descriptor_list[];
 
 
 extern const usb_descriptor_list_t usb_descriptor_list[];
 
-
-#endif
-
index 0090e896fb5ab2b8ca316dcf851404355821deed..e4f8add506070425126af3ceef32f824689d597f 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modifications by Jacob Alexander 2014
+ * Modifications by Jacob Alexander 2014-2015
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef _usb_dev_h_
-#define _usb_dev_h_
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -87,7 +86,3 @@ void usb_device_reload();
 
 extern void usb_serial_flush_callback();
 
 
 extern void usb_serial_flush_callback();
 
-
-
-#endif
-
index 8184879a5d6e724085ce72fe073f0f21b88669bd..f2bf8041c88dad5f63965569c67863da93a64aa7 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modifications by Jacob Alexander 2013-2014
+ * Modifications by Jacob Alexander 2013-2015
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef USBkeyboard_h_
-#define USBkeyboard_h_
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -46,7 +45,3 @@
 
 void usb_keyboard_send();
 
 
 void usb_keyboard_send();
 
-
-
-#endif // USBkeyboard_h_
-
index 9beb63e74054cf58518b532334a94b75f95246d4..f4b43e5ce2f01ab63fdd986e5dd7e3a3265cb120 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modifications by Jacob Alexander (2013-2014)
+ * Modifications by Jacob Alexander (2013-2015)
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef _usb_mem_h_
-#define _usb_mem_h_
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -55,7 +54,3 @@ typedef struct usb_packet_struct {
 usb_packet_t *usb_malloc();
 void usb_free( usb_packet_t *p );
 
 usb_packet_t *usb_malloc();
 void usb_free( usb_packet_t *p );
 
-
-
-#endif
-
index 487ef98dba0d60fa0ffe0681b5ff775d4ada6f6f..09980d33c2912d3028e9a89baa88052035451936 100644 (file)
@@ -1,7 +1,7 @@
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
 /* Teensyduino Core Library
  * http://www.pjrc.com/teensy/
  * Copyright (c) 2013 PJRC.COM, LLC.
- * Modifications by Jacob Alexander (2013-2014)
+ * Modifications by Jacob Alexander (2013-2015)
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files (the
@@ -29,8 +29,7 @@
  * SOFTWARE.
  */
 
  * SOFTWARE.
  */
 
-#ifndef USBserial_h_
-#define USBserial_h_
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -73,7 +72,3 @@ int usb_serial_write( const void *buffer, uint32_t size );
 void usb_serial_flush_input();
 void usb_serial_flush_output();
 
 void usb_serial_flush_input();
 void usb_serial_flush_output();
 
-
-
-#endif // USBserial_h_
-
index 9fb47ff9615a11d671b0b9fe3fd3ef4b4025492f..5ef90fae2bc9ece0753b4686e5e450bf454c784a 100644 (file)
@@ -1,6 +1,6 @@
 /* USB Keyboard and CDC Serial Device for Teensy USB Development Board
  * Copyright (c) 2009 PJRC.COM, LLC
 /* USB Keyboard and CDC Serial Device for Teensy USB Development Board
  * Copyright (c) 2009 PJRC.COM, LLC
- * Modifications by Jacob Alexander (2011-2014)
+ * Modifications by Jacob Alexander (2011-2015)
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -21,8 +21,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef usb_keyboard_serial_h__
-#define usb_keyboard_serial_h__
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -701,7 +700,3 @@ static const struct descriptor_list_struct {
 };
 #define NUM_DESC_LIST (sizeof(descriptor_list)/sizeof(struct descriptor_list_struct))
 
 };
 #define NUM_DESC_LIST (sizeof(descriptor_list)/sizeof(struct descriptor_list_struct))
 
-
-
-#endif // usb_keyboard_serial_h__
-
index ab1e05f3443b7c00755e83ad151052aded4c7002..f2f2f583eb0b4a4e7d5ea257a6d9079355ade8e4 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __output_com_h
-#define __output_com_h
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -116,5 +115,3 @@ int Output_getchar();
 int Output_putchar( char c );
 int Output_putstr( char* str );
 
 int Output_putchar( char c );
 int Output_putstr( char* str );
 
-#endif
-
index 1a0a2b6c2407b57abea4b820ecc8cde53d775b89..4d13adfb4503156e1fe8086ed8e36db7a7d10389 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __uart_serial_h_
-#define __uart_serial_h_
+#pragma once
 
 #include <inttypes.h>
 
 
 #include <inttypes.h>
 
@@ -36,5 +35,3 @@ void uart_serial_setup();
 
 void uart_device_reload();
 
 
 void uart_device_reload();
 
-#endif // __uart_serial_h_
-
diff --git a/Output/uartOut/output_com.h b/Output/uartOut/output_com.h
deleted file mode 100644 (file)
index 684d58a..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* 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
- * 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
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#ifndef __output_com_h
-#define __output_com_h
-
-// ----- Includes -----
-
-// Compiler Includes
-#include <stdint.h>
-
-// Local Includes
-#include <buildvars.h> // Defines USB Parameters, partially generated by CMake
-
-
-
-// ----- Defines -----
-
-// Max size of key buffer needed for NKRO
-// Boot mode uses only the first 6 bytes
-#define USB_NKRO_BITFIELD_SIZE_KEYS 26
-#define USB_BOOT_MAX_KEYS 6
-
-
-
-// ----- Enumerations -----
-
-// USB NKRO state transitions (indicates which Report ID's need refreshing)
-// Boot mode just checks if any keys were changed (as everything is sent every time)
-typedef enum USBKeyChangeState {
-       USBKeyChangeState_None          = 0x00,
-       USBKeyChangeState_Modifiers     = 0x01,
-       USBKeyChangeState_MainKeys      = 0x02,
-       USBKeyChangeState_SecondaryKeys = 0x04,
-       USBKeyChangeState_System        = 0x08,
-       USBKeyChangeState_Consumer      = 0x10,
-} USBKeyChangeState;
-
-
-
-// ----- Variables -----
-
-// Variables used to communciate to the output module
-// XXX Even if the output module is not USB, this is internally understood keymapping scheme
-extern          uint8_t  USBKeys_Modifiers;
-extern          uint8_t  USBKeys_Keys[USB_NKRO_BITFIELD_SIZE_KEYS];
-extern          uint8_t  USBKeys_Sent;
-extern volatile uint8_t  USBKeys_LEDs;
-
-extern          uint8_t  USBKeys_SysCtrl;  // 1KRO container for System Control HID table
-extern          uint16_t USBKeys_ConsCtrl; // 1KRO container for Consumer Control HID table
-
-extern volatile uint8_t  USBKeys_Protocol; // 0 - Boot Mode, 1 - NKRO Mode
-
-// Misc variables (XXX Some are only properly utilized using AVR)
-extern          uint8_t  USBKeys_Idle_Config;
-extern          uint8_t  USBKeys_Idle_Count;
-
-extern USBKeyChangeState USBKeys_Changed;
-
-extern          uint8_t  Output_Available; // 0 - Output module not fully functional, 1 - Output module working
-
-
-
-// ----- Capabilities -----
-
-void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-
-
-
-// ----- Functions -----
-
-void Output_setup();
-void Output_send();
-
-void Output_firmwareReload();
-void Output_softReset();
-
-// Relies on USB serial module
-unsigned int Output_availablechar();
-
-int Output_getchar();
-int Output_putchar( char c );
-int Output_putstr( char* str );
-
-#endif
-
index 17cc2784821eb24e76c1edc004458a0e06f70970..d411b87764508c0079911c30f084fa704e27c64f 100644 (file)
@@ -30,6 +30,16 @@ elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
 endif ()
 
 
 endif ()
 
 
+###
+# Includes
+#
+
+# Use pjrcUSB output_com.h
+include_directories (
+       ${CMAKE_CURRENT_LIST_DIR}/../pjrcUSB
+)
+
+
 ###
 # Compiler Family Compatibility
 #
 ###
 # Compiler Family Compatibility
 #
diff --git a/Output/usbMuxUart/output_com.h b/Output/usbMuxUart/output_com.h
deleted file mode 100644 (file)
index d6b5836..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-/* 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
- * 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
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#ifndef __output_com_h
-#define __output_com_h
-
-// ----- Includes -----
-
-// Compiler Includes
-#include <stdint.h>
-
-// Local Includes
-#include <buildvars.h> // Defines USB Parameters, partially generated by CMake
-
-
-
-// ----- Defines -----
-
-// Max size of key buffer needed for NKRO
-// Boot mode uses only the first 6 bytes
-#define USB_NKRO_BITFIELD_SIZE_KEYS 27
-#define USB_BOOT_MAX_KEYS 6
-
-
-
-// ----- Enumerations -----
-
-// USB NKRO state transitions (indicates which Report ID's need refreshing)
-// Boot mode just checks if any keys were changed (as everything is sent every time)
-typedef enum USBKeyChangeState {
-       USBKeyChangeState_None          = 0x00,
-       USBKeyChangeState_Modifiers     = 0x01,
-       USBKeyChangeState_MainKeys      = 0x02,
-       USBKeyChangeState_SecondaryKeys = 0x04,
-       USBKeyChangeState_TertiaryKeys  = 0x08,
-       USBKeyChangeState_QuartiaryKeys = 0x10,
-       USBKeyChangeState_System        = 0x20,
-       USBKeyChangeState_Consumer      = 0x40,
-       USBKeyChangeState_All           = 0x7F,
-} USBKeyChangeState;
-
-
-
-// ----- Variables -----
-
-// Variables used to communciate to the output module
-// XXX Even if the output module is not USB, this is internally understood keymapping scheme
-extern          uint8_t  USBKeys_Modifiers;
-extern          uint8_t  USBKeys_Keys[USB_NKRO_BITFIELD_SIZE_KEYS];
-extern          uint8_t  USBKeys_Sent;
-extern volatile uint8_t  USBKeys_LEDs;
-
-extern          uint8_t  USBKeys_SysCtrl;  // 1KRO container for System Control HID table
-extern          uint16_t USBKeys_ConsCtrl; // 1KRO container for Consumer Control HID table
-
-extern volatile uint8_t  USBKeys_Protocol; // 0 - Boot Mode, 1 - NKRO Mode
-
-// Misc variables (XXX Some are only properly utilized using AVR)
-extern          uint8_t  USBKeys_Idle_Config;
-extern          uint8_t  USBKeys_Idle_Count;
-
-extern USBKeyChangeState USBKeys_Changed;
-
-extern          uint8_t  Output_Available; // 0 - Output module not fully functional, 1 - Output module working
-
-extern          uint8_t  Output_DebugMode; // 0 - Debug disabled, 1 - Debug enabled
-
-
-
-// ----- Capabilities -----
-
-void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-
-// Configuration capabilities
-void Output_kbdProtocolBoot_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-void Output_kbdProtocolNKRO_capability( uint8_t state, uint8_t stateType, uint8_t *args );
-
-
-
-// ----- Functions -----
-
-void Output_setup();
-void Output_send();
-
-void Output_flushBuffers();
-
-void Output_firmwareReload();
-void Output_softReset();
-
-// Relies on USB serial module
-unsigned int Output_availablechar();
-
-int Output_getchar();
-int Output_putchar( char c );
-int Output_putstr( char* str );
-
-#endif
-
index 7ace907d0813d0c726998c04cb9e0a4907e175ff..8ca8d9c0d0454d84e958783f8cce9fecac679a65 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __KEYMAP_H
-#define __KEYMAP_H
+#pragma once
 
 
 // ----- Variables -----
 
 
 // ----- Variables -----
@@ -34,6 +33,3 @@ static uint8_t DefaultMap_Lookup[] = {
                                0, // 0x04
 };
 
                                0, // 0x04
 };
 
-
-#endif
-
index 35661057f450636e041515e6aad703f694206ff7..3e35b5b2f1acabfba44d687c783f4efa41186c73 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -61,5 +60,3 @@ void Scan_finishedWithUSBBuffer( uint8_t sentKeys );
 
 void Scan_resetKeyboard();
 
 
 void Scan_resetKeyboard();
 
-#endif // __SCAN_LOOP_H
-
index 14ba30b7982cde0b3713610acf03301fdb797191..fd5bfdcdaf1fdd4900682a7f3d5b29fb2d7359b4 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index b53de14e8ce71b2ff784768b2d1718764f3732c1..6c74e2d37f5f3cf616f4dc6ffbdf68bcdd5b163e 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -74,7 +73,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
 
 };
 
 
 };
 
-
-
-#endif // __MATRIX_H
-
index fc2bbbbd067046beb0ecc4a94377385b6543b1b5..83a9a1b48c9199e4fc2e50da3ae10bd1b9925418 100644 (file)
@@ -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
  *
  * 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/>.
  */
 
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -56,6 +55,3 @@ uint8_t Scan_sendData( uint8_t dataPayload );
 void Scan_finishedWithMacro( uint8_t sentKeys );
 void Scan_finishedWithOutput( uint8_t sentKeys );
 
 void Scan_finishedWithMacro( uint8_t sentKeys );
 void Scan_finishedWithOutput( uint8_t sentKeys );
 
-
-#endif // __SCAN_LOOP_H
-
index 572c706886525d4a1581d80e0aee6a949daeb1f6..16e1eeece73a58b9a3403b18fc66b01168240808 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -61,6 +60,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index cdb7ee68e70276ece96e33002bb0b9e31998561c..6b68ee11ff0c2b917fddcd97dca7ee04fb96fbc8 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 14ba30b7982cde0b3713610acf03301fdb797191..6f454d5ac682ee8013393cd1677396b1b8b2e670 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 54587b467248c3da48af7ba64954d6e8610420c6..134ae70bad033caab18c4ef099f7692f6622107b 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -63,7 +62,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
 
 };
 
 
 };
 
-
-
-#endif // __MATRIX_H
-
index 190e588daabb4adca6bb7e132bda517a84634fb9..9cbcbad9a360c2785c2a10914f2ef5459943151d 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -67,7 +66,3 @@ static const uint8_t matrix_pinout[][MAX_COL_SIZE + 1] = {
 
 };
 
 
 };
 
-
-
-#endif // __MATRIX_H
-
index ef2400a6e4ef798107c1a71cbb10f0c292749fc7..dfa54d73f994f4bfca73aa7657064996b0f608cd 100644 (file)
@@ -23,6 +23,7 @@
 #include <cli.h>
 #include <led.h>
 #include <print.h>
 #include <cli.h>
 #include <led.h>
 #include <print.h>
+#include <led_conf.h> // Located with scan_loop.c
 
 // Local Includes
 #include "led_scan.h"
 
 // Local Includes
 #include "led_scan.h"
@@ -139,6 +140,8 @@ const uint8_t LED_ledEnableMask[] = {
 0x43, 0x43, // C9-1 -> C9-16
 };
 */
 0x43, 0x43, // C9-1 -> C9-16
 };
 */
+
+/*
 const uint8_t LED_ledEnableMask[] = {
 0xE8, // I2C address
 0x00, // Starting register address
 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
 };
 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
 // 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
 };
 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
 // 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
 };
 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();
 
        // 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)
        // 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
 
        // 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 );
 
        // Disable Software shutdown of ISSI chip
        LED_writeReg( 0x0A, 0x01, 0x0B );
-       */
 }
 
 
 }
 
 
index a948a97e6a4513048697bc895800e9856a7125ad..71d8e805fa87df13742b49314e2a4e92e4a1e8bf 100644 (file)
@@ -14,8 +14,7 @@
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __LED_SCAN_H
-#define __LED_SCAN_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -29,6 +28,3 @@
 void LED_setup();
 uint8_t LED_scan();
 
 void LED_setup();
 uint8_t LED_scan();
 
-
-#endif // __LED_SCAN_H
-
index 9ee4b0107520202335099bc6252bf5508b801761..cd73e6b54f6e25b2c4efc2db5a59f2c8a52f1e6d 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 0893567f2e9234c03676efbc835c1a1453a602f5..fbf652999d74442cc4e1df94acd4e8141950861f 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __KEYMAP_H
-#define __KEYMAP_H
+#pragma once
 
 // This file contains various key layouts for the Sanyo MBC-55X Computer Keyboard
 
 
 // This file contains various key layouts for the Sanyo MBC-55X Computer Keyboard
 
@@ -287,5 +286,3 @@ static uint8_t DefaultMap_Lookup[] = {
                                0, // 0xFF
 };
 
                                0, // 0xFF
 };
 
-#endif
-
index c2f87e4d1502bfbe1f02bc75d831335981804377..6b68ee11ff0c2b917fddcd97dca7ee04fb96fbc8 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 55cc06845c28c93dd8bde5d95f5e2e48f51e5c26..10a15d75da18430c6bfa98d822edc182f372dbba 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- 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;
 
 // Define type of scan matrix
 Config Matrix_type = Config_Pulldown;
 
-
-#endif // __MATRIX_H
-
index a61b4a1ce025974f9fc47eb0a0fce67adbb75705..17a06fccb86a4773f9fa092b5ee27971979011ac 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- 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
 
 void Scan_finishedWithMacro( uint8_t sentKeys );  // Called by Macro Module
 void Scan_finishedWithOutput( uint8_t sentKeys ); // Called by Output Module
 
-
-#endif // __SCAN_LOOP_H
-
index 7241e0e896e50d71c495c149cec0152e763e503d..cb360e45981c34c7b07272a0caec0d7bfaa2fb21 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Macros -----
 
 
 // ----- 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;
 
 // Define type of scan matrix
 Config Matrix_type = Config_Pulldown;
 
-
-#endif // __MATRIX_H
-
index a61b4a1ce025974f9fc47eb0a0fce67adbb75705..17a06fccb86a4773f9fa092b5ee27971979011ac 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- 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
 
 void Scan_finishedWithMacro( uint8_t sentKeys );  // Called by Macro Module
 void Scan_finishedWithOutput( uint8_t sentKeys ); // Called by Output Module
 
-
-#endif // __SCAN_LOOP_H
-
index 13839a192d88edd69efa29014ca8c122d88583e7..06ae75fbb1b3d5e492f6ee15caf16bbf27e9070a 100644 (file)
@@ -19,8 +19,7 @@
  * THE SOFTWARE.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_SCAN_H
-#define __MATRIX_SCAN_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -140,6 +139,3 @@ typedef struct KeyState {
 void Matrix_setup();
 void Matrix_scan( uint16_t scanNum );
 
 void Matrix_setup();
 void Matrix_scan( uint16_t scanNum );
 
-
-#endif // __MATRIX_SCAN_H
-
index 0f48c77c951b48c5abbd42f3ccad74d7fb19597c..f1695862b68d4b6528884b428a5ef496736d7504 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_SETUP_H
-#define __MATRIX_SETUP_H
+#pragma once
 
 // ----- Macros -----
 
 
 // ----- Macros -----
 
@@ -30,6 +29,3 @@
 #define Matrix_rowsNum sizeof( Matrix_rows ) / sizeof( GPIO_Pin )
 #define Matrix_maxKeys sizeof( Matrix_scanArray ) / sizeof( KeyState )
 
 #define Matrix_rowsNum sizeof( Matrix_rows ) / sizeof( GPIO_Pin )
 #define Matrix_maxKeys sizeof( Matrix_scanArray ) / sizeof( KeyState )
 
-
-#endif // __MATRIX_SETUP_H
-
index 36e11da25f5e99e7c7bc308c8e4e598698823a05..a091d093639d58aca6c079973ae3b5becb6ec12d 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 0c04c7b0582d3530596e8cf0a6ea4188b679d0a9..b210868435ce4f62e7d916fdbf8f35e7e6c10407 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __KEYMAP_H
-#define __KEYMAP_H
+#pragma once
 
 // ----- Variables -----
 
 
 // ----- Variables -----
 
@@ -114,6 +113,3 @@ static uint8_t DefaultMap_Lookup[] = {
                                0, // 0x55
 };
 
                                0, // 0x55
 };
 
-
-#endif
-
index 11160d1cfd9150ffc201ea7e5e4a3142ff2e1c0c..773d298af9cbed29eddbb5bedd400523ebaa0397 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * 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
 
 
 // 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
 };
 
                                0, // 0x55
 };
 
-
-#endif
-
index 406e97c9d85180db96ca67450b82a2fc495def14..26f9cb64a4f1a9528b4b50e89a74519826a60bef 100644 (file)
@@ -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:
  * 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 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
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -73,7 +72,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
 
 };
 
 
 };
 
-
-
-#endif // __MATRIX_H
-
index 4a519b92a5d2e647aa9030608508c0e1baee2658..36884a257a763f8ef86867f36243de7db22a4947 100644 (file)
@@ -14,8 +14,7 @@
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __LCD_SCAN_H
-#define __LCD_SCAN_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -29,6 +28,3 @@
 void LCD_setup();
 uint8_t LCD_scan();
 
 void LCD_setup();
 uint8_t LCD_scan();
 
-
-#endif // __LCD_SCAN_H
-
index 572c706886525d4a1581d80e0aee6a949daeb1f6..a1abb984e0548e509683a8987129f71dd1adf404 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
-
 // ----- Includes -----
 
 // Compiler Includes
 // ----- Includes -----
 
 // Compiler Includes
@@ -61,6 +58,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 7dcfc1c924dab801028b5e62d4bc2424771f5017..65312a95c2d4dce25ad4fb0766313c0c81f42338 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
-
 // ----- Includes -----
 
 // Compiler Includes
 // ----- Includes -----
 
 // Compiler Includes
@@ -62,6 +59,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index abdff4f441fe4369903d9c9692d0117630327577..1daf9b91500f4d1ea12e7ebbbe5576e9749c306d 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -62,6 +61,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 94e7738cc08f5047f6577cc21bd43013d4a4210b..9ba6da13f05bc62509d5e85d823e890bf289c440 100644 (file)
@@ -14,8 +14,7 @@
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __CONNECT_SCAN_H
-#define __CONNECT_SCAN_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -117,6 +116,3 @@ typedef struct AnimationCommand {
 void Connect_setup( uint8_t master );
 void Connect_scan();
 
 void Connect_setup( uint8_t master );
 void Connect_scan();
 
-
-#endif // __CONNECT_SCAN_H
-
index 95a7232c5abcbedca77d4a3645b37d41d0d16452..9151672ad61f4c71b4848622506e4b9a3b9281b2 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -61,6 +60,3 @@ void Scan_lockKeyboard( void );
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
 void Scan_unlockKeyboard( void );
 void Scan_resetKeyboard( void );
 
-
-#endif // __SCAN_LOOP_H
-
index 2c3a65fc27ed3e78be53ce8633a6913eb74442f3..c89e216f0d61bf05a54352e006d51d3654061017 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_SCAN_H
-#define __MATRIX_SCAN_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
 void matrix_pinSetup( uint8_t *matrix, uint8_t scanType );
 void matrix_scan( uint8_t *matrix, uint8_t *detectArray );
 
 void matrix_pinSetup( uint8_t *matrix, uint8_t scanType );
 void matrix_scan( uint8_t *matrix, uint8_t *detectArray );
 
-#endif // __MATRIX_SCAN_H
-
index 41ca233db11a396618981e1f76166d1f7d66686b..a56456f53eae2564d4e5a8587e9affd4d1182e2a 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __MATRIX_H
-#define __MATRIX_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -147,7 +146,3 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
 
 };
 
 
 };
 
-
-
-#endif // __MATRIX_H
-
index 89e568850f1e1391b6f977a2e814df088329400c..1366c5073bbc71dd7cd2633652d6ec3f5c43279a 100644 (file)
@@ -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
  *
  * 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.
  */
 
  * THE SOFTWARE.
  */
 
-#ifndef __SCAN_LOOP_H
-#define __SCAN_LOOP_H
+#pragma once
 
 // ----- Includes -----
 
 
 // ----- Includes -----
 
@@ -63,6 +62,3 @@ uint8_t Scan_loop( void );
 void Scan_finishedWithBuffer( uint8_t sentKeys );
 void Scan_finishedWithUSBBuffer( uint8_t sentKeys );
 
 void Scan_finishedWithBuffer( uint8_t sentKeys );
 void Scan_finishedWithUSBBuffer( uint8_t sentKeys );
 
-
-#endif // __SCAN_LOOP_H
-
diff --git a/main.c b/main.c
index 98e72e16821deaef9e05bc315f611c0d85602b7d..2e2fe85fad2269826c39b4d49fd1a0546b4e3c07 100644 (file)
--- a/main.c
+++ b/main.c
@@ -40,17 +40,6 @@ extern volatile uint32_t systick_millis_count;
 
 int main()
 {
 
 int main()
 {
-       /*
-       GPIOA_PDDR |= (1<<5);
-       // Setup pin - A5 - See Lib/pin_map.mchck for more details on pins
-       PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
-       while( 1 )
-       {
-               GPIOA_PTOR |= (1<<5);
-               for (uint32_t d = 0; d < 720000; d++ );
-       }
-       */
-
        // AVR - Teensy Set Clock speed to 16 MHz
 #if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_)
        CLKPR = 0x80;
        // AVR - Teensy Set Clock speed to 16 MHz
 #if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_)
        CLKPR = 0x80;