Code cleanup

- Changing header file ifndef define to pragma once's
- Removed duplicate output_com.h's
This commit is contained in:
Jacob Alexander 2015-06-14 13:56:56 -07:00
parent 03f60df94d
commit 5f262ea4b6
75 changed files with 158 additions and 650 deletions

View 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
@ -25,8 +25,7 @@
// ----- Includes -----
#ifndef __INTERRUPTS_H
#define __INTERRUPTS_H
#pragma once
// ARM
#if defined(_mk20dx128_) || defined(_mk20dx128vlf5_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_)
@ -58,6 +57,3 @@
#endif
#endif

View 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
@ -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.
#ifndef __MACROLIB_H
#define __MACROLIB_H
#pragma once
// ----- Includes -----
@ -50,6 +48,3 @@
#endif
#endif

View 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
@ -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.
#ifndef __MAINLIB_H
#define __MAINLIB_H
#pragma once
// ----- Includes -----
@ -49,6 +47,3 @@
#endif
#endif

View 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
@ -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.
#ifndef __OUTPUTLIB_H
#define __OUTPUTLIB_H
#pragma once
// ----- Includes -----
@ -46,6 +44,3 @@
#endif
#endif

View 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
@ -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.
#ifndef __SCANLIB_H
#define __SCANLIB_H
#pragma once
// ----- Includes -----
@ -51,6 +49,3 @@
#endif
#endif

View file

@ -19,8 +19,7 @@
* THE SOFTWARE.
*/
#ifndef __buildvars_h
#define __buildvars_h
#pragma once
// ----- Includes -----
@ -58,5 +57,3 @@
#define VENDOR_ID @VENDOR_ID@
#define PRODUCT_ID @PRODUCT_ID@
#endif

View file

@ -1,7 +1,7 @@
/* 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
@ -29,8 +29,7 @@
* SOFTWARE.
*/
#ifndef __DELAY_H
#define __DELAY_H
#pragma once
// ----- System Includes -----
@ -85,5 +84,3 @@ uint32_t micros(void);
void delay(uint32_t ms);
#endif

View file

@ -29,8 +29,7 @@
* SOFTWARE.
*/
#ifndef _mk20dx_h_
#define _mk20dx_h_
#pragma once
// ----- Defines -----
@ -2090,5 +2089,3 @@ extern void portd_isr(void);
extern void porte_isr(void);
extern void software_isr(void);
#endif