Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Revision:
27:7110ebee3484
Parent:
11:1c1ebd0324fa
--- a/can_helper.h	Fri Feb 11 10:33:02 2011 +0000
+++ b/can_helper.h	Tue Nov 29 14:59:27 2011 +0000
@@ -1,6 +1,5 @@
 /* mbed Microcontroller Library - can_helper
  * Copyright (c) 2009 ARM Limited. All rights reserved.
- * rmeyer
  */ 
 
 #ifndef MBED_CAN_HELPER_H
@@ -10,19 +9,18 @@
 extern "C" {
 #endif
 
-typedef enum CANFormat CANFormat;
 enum CANFormat {
     CANStandard = 0,
     CANExtended = 1
 };
+typedef enum CANFormat CANFormat;
 
-typedef enum CANType CANType;
 enum CANType {
     CANData   = 0,
     CANRemote = 1
 };
+typedef enum CANType CANType;
 
-typedef struct CAN_Message CAN_Message;
 struct CAN_Message {
     unsigned int   id;                 // 29 bit identifier
     unsigned char  data[8];            // Data field
@@ -30,6 +28,7 @@
     CANFormat      format;             // 0 - STANDARD, 1- EXTENDED IDENTIFIER
     CANType        type;               // 0 - DATA FRAME, 1 - REMOTE FRAME
 };
+typedef struct CAN_Message CAN_Message;
 
 #ifdef __cplusplus
 };