aaaaaaaaa

Dependencies:   QEI mbed

Fork of MainBoard2018_Auto_Master_A_new by Akihiro Nakabayashi

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 #else
00026 #   define RS485_BUFFER_SIZE 0
00027 #endif
00028 
00029 #define USE_SOLENOID
00030 
00031 //Communication
00032 
00033 //Output
00034 #define USE_LED
00035 #define USE_LED_NUM 4
00036 //Output
00037 
00038 //Input
00039 
00040 #define USE_SWITCH
00041 
00042 #define USE_POTENTIOMETER
00043 #ifdef USE_POTENTIOMETER
00044 #   define USE_POTENTIOMETER_NUM 4
00045 #else
00046 #   define USE_POTENTIOMETER_NUM 0
00047 #endif
00048 
00049 #define USE_INT
00050 
00051 //Input
00052 
00053 #define USE_ERRORCHECK
00054 #define USE_DRIVECHECK
00055 
00056 #define USE_SUBPROCESS
00057 #ifdef USE_SUBPROCESS
00058 #   define USE_PROCESS_NUM 10   //0 ~ 10
00059 #   define DEFAULT_PROCESS 0
00060 #endif
00061 
00062 
00063 #endif