ttt

Dependencies:   mbed TrapezoidControl QEI Pulse LM61CIZ

Committer:
t_yamamoto
Date:
Sat Sep 08 06:05:22 2018 +0000
Revision:
0:669ef71cba68
Child:
21:e3b58d675c1c
???????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
t_yamamoto 0:669ef71cba68 1 #ifndef USING_H_
t_yamamoto 0:669ef71cba68 2 #define USING_H_
t_yamamoto 0:669ef71cba68 3
t_yamamoto 0:669ef71cba68 4 //Communication
t_yamamoto 0:669ef71cba68 5 #define USE_MU
t_yamamoto 0:669ef71cba68 6
t_yamamoto 0:669ef71cba68 7 #define USE_BLUETOOTH
t_yamamoto 0:669ef71cba68 8 #ifdef USE_BLUETOOTH
t_yamamoto 0:669ef71cba68 9 # define BLUETOOTH_BUFFER_SIZE 64
t_yamamoto 0:669ef71cba68 10 const char disconnect = 0x03;
t_yamamoto 0:669ef71cba68 11 #else
t_yamamoto 0:669ef71cba68 12 # define BLUETOOTH_BUFFER_SIZE 0
t_yamamoto 0:669ef71cba68 13 #endif
t_yamamoto 0:669ef71cba68 14
t_yamamoto 0:669ef71cba68 15 #define USE_MOTOR
t_yamamoto 0:669ef71cba68 16 #ifdef USE_MOTOR
t_yamamoto 0:669ef71cba68 17 # define MOUNTING_MOTOR_NUM 13
t_yamamoto 0:669ef71cba68 18 #else
t_yamamoto 0:669ef71cba68 19 # define MOUNTING_MOTOR_NUM 0
t_yamamoto 0:669ef71cba68 20 #endif
t_yamamoto 0:669ef71cba68 21
t_yamamoto 0:669ef71cba68 22 #define USE_RS485
t_yamamoto 0:669ef71cba68 23 #ifdef USE_RS485
t_yamamoto 0:669ef71cba68 24 # define RS485_BUFFER_SIZE 26 + BLUETOOTH_BUFFER_SIZE + MOUNTING_MOTOR_NUM-13
t_yamamoto 0:669ef71cba68 25 #else
t_yamamoto 0:669ef71cba68 26 # define RS485_BUFFER_SIZE 0
t_yamamoto 0:669ef71cba68 27 #endif
t_yamamoto 0:669ef71cba68 28
t_yamamoto 0:669ef71cba68 29 #define USE_SOLENOID
t_yamamoto 0:669ef71cba68 30
t_yamamoto 0:669ef71cba68 31 //Communication
t_yamamoto 0:669ef71cba68 32
t_yamamoto 0:669ef71cba68 33 //Output
t_yamamoto 0:669ef71cba68 34 #define USE_LED
t_yamamoto 0:669ef71cba68 35 #define USE_LED_NUM 4
t_yamamoto 0:669ef71cba68 36 //Output
t_yamamoto 0:669ef71cba68 37
t_yamamoto 0:669ef71cba68 38 //Input
t_yamamoto 0:669ef71cba68 39
t_yamamoto 0:669ef71cba68 40 #define USE_SWITCH
t_yamamoto 0:669ef71cba68 41
t_yamamoto 0:669ef71cba68 42 #define USE_POTENTIOMETER
t_yamamoto 0:669ef71cba68 43 #ifdef USE_POTENTIOMETER
t_yamamoto 0:669ef71cba68 44 # define USE_POTENTIOMETER_NUM 4
t_yamamoto 0:669ef71cba68 45 #else
t_yamamoto 0:669ef71cba68 46 # define USE_POTENTIOMETER_NUM 0
t_yamamoto 0:669ef71cba68 47 #endif
t_yamamoto 0:669ef71cba68 48
t_yamamoto 0:669ef71cba68 49 #define USE_INT
t_yamamoto 0:669ef71cba68 50
t_yamamoto 0:669ef71cba68 51 //Input
t_yamamoto 0:669ef71cba68 52
t_yamamoto 0:669ef71cba68 53 #define USE_ERRORCHECK
t_yamamoto 0:669ef71cba68 54 #define USE_DRIVECHECK
t_yamamoto 0:669ef71cba68 55
t_yamamoto 0:669ef71cba68 56 #define USE_SUBPROCESS
t_yamamoto 0:669ef71cba68 57 #ifdef USE_SUBPROCESS
t_yamamoto 0:669ef71cba68 58 # define USE_PROCESS_NUM 10 //0 ~ 10
t_yamamoto 0:669ef71cba68 59 # define DEFAULT_PROCESS 0
t_yamamoto 0:669ef71cba68 60 #endif
t_yamamoto 0:669ef71cba68 61
t_yamamoto 0:669ef71cba68 62
t_yamamoto 0:669ef71cba68 63 #endif