Code cleanup
- Changing header file ifndef define to pragma once's - Removed duplicate output_com.h's
This commit is contained in:
parent
03f60df94d
commit
5f262ea4b6
75 changed files with 158 additions and 650 deletions
|
@ -1,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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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_
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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_
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* 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
|
||||
|
@ -21,8 +21,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef usb_keyboard_serial_h__
|
||||
#define usb_keyboard_serial_h__
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -701,7 +700,3 @@ static const struct descriptor_list_struct {
|
|||
};
|
||||
#define NUM_DESC_LIST (sizeof(descriptor_list)/sizeof(struct descriptor_list_struct))
|
||||
|
||||
|
||||
|
||||
#endif // usb_keyboard_serial_h__
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __output_com_h
|
||||
#define __output_com_h
|
||||
#pragma once
|
||||
|
||||
// ----- Includes -----
|
||||
|
||||
|
@ -116,5 +115,3 @@ int Output_getchar();
|
|||
int Output_putchar( char c );
|
||||
int Output_putstr( char* str );
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue