daad
Dependencies: mbed TrapezoidControl QEI
System/Using.h@24:41c23c9a5058, 2019-09-16 (annotated)
- Committer:
- yabahiro
- Date:
- Mon Sep 16 00:03:18 2019 +0000
- Revision:
- 24:41c23c9a5058
- Parent:
- 21:1f1e9c585da8
ads
Who changed what in which revision?
User | Revision | Line number | New 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 |
yabahiro | 21:1f1e9c585da8 | 25 | # define RS485_BUFFER_LINE 8 |
t_yamamoto | 0:669ef71cba68 | 26 | #else |
t_yamamoto | 0:669ef71cba68 | 27 | # define RS485_BUFFER_SIZE 0 |
yabahiro | 21:1f1e9c585da8 | 28 | # define RS485_BUFFER_LINE 0 |
t_yamamoto | 0:669ef71cba68 | 29 | #endif |
t_yamamoto | 0:669ef71cba68 | 30 | |
t_yamamoto | 0:669ef71cba68 | 31 | #define USE_SOLENOID |
t_yamamoto | 0:669ef71cba68 | 32 | |
t_yamamoto | 0:669ef71cba68 | 33 | //Communication |
t_yamamoto | 0:669ef71cba68 | 34 | |
t_yamamoto | 0:669ef71cba68 | 35 | //Output |
t_yamamoto | 0:669ef71cba68 | 36 | #define USE_LED |
t_yamamoto | 0:669ef71cba68 | 37 | #define USE_LED_NUM 4 |
t_yamamoto | 0:669ef71cba68 | 38 | //Output |
t_yamamoto | 0:669ef71cba68 | 39 | |
t_yamamoto | 0:669ef71cba68 | 40 | //Input |
t_yamamoto | 0:669ef71cba68 | 41 | |
t_yamamoto | 0:669ef71cba68 | 42 | #define USE_SWITCH |
t_yamamoto | 0:669ef71cba68 | 43 | |
t_yamamoto | 0:669ef71cba68 | 44 | #define USE_POTENTIOMETER |
t_yamamoto | 0:669ef71cba68 | 45 | #ifdef USE_POTENTIOMETER |
t_yamamoto | 0:669ef71cba68 | 46 | # define USE_POTENTIOMETER_NUM 4 |
t_yamamoto | 0:669ef71cba68 | 47 | #else |
t_yamamoto | 0:669ef71cba68 | 48 | # define USE_POTENTIOMETER_NUM 0 |
t_yamamoto | 0:669ef71cba68 | 49 | #endif |
t_yamamoto | 0:669ef71cba68 | 50 | |
t_yamamoto | 0:669ef71cba68 | 51 | #define USE_INT |
t_yamamoto | 0:669ef71cba68 | 52 | |
t_yamamoto | 0:669ef71cba68 | 53 | //Input |
t_yamamoto | 0:669ef71cba68 | 54 | |
t_yamamoto | 0:669ef71cba68 | 55 | #define USE_ERRORCHECK |
t_yamamoto | 0:669ef71cba68 | 56 | #define USE_DRIVECHECK |
t_yamamoto | 0:669ef71cba68 | 57 | |
t_yamamoto | 0:669ef71cba68 | 58 | #define USE_SUBPROCESS |
t_yamamoto | 0:669ef71cba68 | 59 | #ifdef USE_SUBPROCESS |
t_yamamoto | 0:669ef71cba68 | 60 | # define USE_PROCESS_NUM 10 //0 ~ 10 |
t_yamamoto | 0:669ef71cba68 | 61 | # define DEFAULT_PROCESS 0 |
t_yamamoto | 0:669ef71cba68 | 62 | #endif |
t_yamamoto | 0:669ef71cba68 | 63 | |
t_yamamoto | 0:669ef71cba68 | 64 | |
t_yamamoto | 0:669ef71cba68 | 65 | #endif |