/* Teensyduino Core Library
* http://www.pjrc.com/teensy/
* Copyright (c) 2013 PJRC.COM, LLC.
+ * 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
* SOFTWARE.
*/
-#ifndef _usb_mem_h_
-#define _usb_mem_h_
+#pragma once
+// ----- Includes -----
+
+// Compiler Includes
#include <stdint.h>
+
+
+// ----- Structs -----
+
typedef struct usb_packet_struct {
uint16_t len;
uint16_t index;
uint8_t buf[64];
} usb_packet_t;
-usb_packet_t * usb_malloc(void);
-void usb_free(usb_packet_t *p);
-#endif
+
+// ----- Functions -----
+
+usb_packet_t *usb_malloc();
+void usb_free( usb_packet_t *p );