copied over all of the custom pcb stuff and switched connectors + added PWM headers to the power board
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4029 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/gyro_board/src/usb/CAN.h b/gyro_board/src/usb/CAN.h
new file mode 100644
index 0000000..1ef39d5
--- /dev/null
+++ b/gyro_board/src/usb/CAN.h
@@ -0,0 +1,19 @@
+#ifndef _CAN_H_
+#define _CAN_H_
+
+typedef struct _can_message {
+ unsigned RTR:1;
+ unsigned error:7;
+ uint16_t id;
+ uint8_t priority;
+ uint8_t length;
+ union {
+ uint8_t data[8];
+ uint32_t wdata[2];
+ };
+} can_message;
+
+int CAN_get(can_message *message);
+void initCAN(void);
+
+#endif