The last version programs

Dependencies:   mbed TrapezoidControl Pulse QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Using.h Source File

Using.h

00001 #ifndef USING_H_
00002 #define USING_H_
00003 
00004 //Communication
00005 #define USE_MU
00006 
00007 #define USE_BLUETOOTH
00008 #ifdef USE_BLUETOOTH
00009 #   define BLUETOOTH_BUFFER_SIZE 64
00010 const char disconnect = 0x03;
00011 #else
00012 #   define BLUETOOTH_BUFFER_SIZE 0
00013 #endif
00014 
00015 #define USE_MOTOR
00016 #ifdef USE_MOTOR
00017 #   define MOUNTING_MOTOR_NUM 13
00018 #else
00019 #   define MOUNTING_MOTOR_NUM 0
00020 #endif
00021 
00022 #define USE_RS485
00023 #ifdef USE_RS485
00024 #   define RS485_BUFFER_SIZE 26 + BLUETOOTH_BUFFER_SIZE + MOUNTING_MOTOR_NUM-13
00025 #   define RS485_BUFFER_LINE 8
00026 #else
00027 #   define RS485_BUFFER_SIZE 0
00028 #   define RS485_BUFFER_LINE 0
00029 #endif
00030 
00031 #define USE_SOLENOID
00032 
00033 //Communication
00034 
00035 //Output
00036 #define USE_LED
00037 #define USE_LED_NUM 4
00038 //Output
00039 
00040 //Input
00041 
00042 #define USE_SWITCH
00043 
00044 #define USE_POTENTIOMETER
00045 #ifdef USE_POTENTIOMETER
00046 #   define USE_POTENTIOMETER_NUM 4
00047 #else
00048 #   define USE_POTENTIOMETER_NUM 0
00049 #endif
00050 
00051 #define USE_INT
00052 
00053 //Input
00054 
00055 #define USE_ERRORCHECK
00056 #define USE_DRIVECHECK
00057 
00058 #define USE_SUBPROCESS
00059 #ifdef USE_SUBPROCESS
00060 #   define USE_PROCESS_NUM 10   //0 ~ 10
00061 #   define DEFAULT_PROCESS 0
00062 #endif
00063 
00064 
00065 #endif