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,7 +1,7 @@
/* 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
@ -29,8 +29,7 @@
* SOFTWARE.
*/
#ifndef _usb_desc_h_
#define _usb_desc_h_
#pragma once
// ----- Includes -----
@ -126,6 +125,3 @@ extern const uint8_t usb_endpoint_config_table[NUM_ENDPOINTS];
extern const usb_descriptor_list_t usb_descriptor_list[];
#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 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
@ -29,8 +29,7 @@
* SOFTWARE.
*/
#ifndef _usb_dev_h_
#define _usb_dev_h_
#pragma once
// ----- Includes -----
@ -87,7 +86,3 @@ void usb_device_reload();
extern void usb_serial_flush_callback();
#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 USBkeyboard_h_
#define USBkeyboard_h_
#pragma once
// ----- Includes -----
@ -46,7 +45,3 @@
void usb_keyboard_send();
#endif // USBkeyboard_h_

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 _usb_mem_h_
#define _usb_mem_h_
#pragma once
// ----- Includes -----
@ -55,7 +54,3 @@ typedef struct usb_packet_struct {
usb_packet_t *usb_malloc();
void usb_free( usb_packet_t *p );
#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 USBserial_h_
#define USBserial_h_
#pragma once
// ----- 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();
#endif // USBserial_h_