]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Output/pjrcUSB/arm/usb_mem.h
Code cleanup
[kiibohd-controller.git] / Output / pjrcUSB / arm / usb_mem.h
index 6cec9ac34c82233f90592c7a8af5d802774f0da5..f4b43e5ce2f01ab63fdd986e5dd7e3a3265cb120 100644 (file)
@@ -1,6 +1,7 @@
 /* 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;
@@ -40,8 +47,10 @@ typedef struct usb_packet_struct {
        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 );