![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
aa
System/Using.h@53:694dbd7dfa0e, 2019-11-15 (annotated)
- Committer:
- yabahiro
- Date:
- Fri Nov 15 11:49:03 2019 +0000
- Revision:
- 53:694dbd7dfa0e
- Parent:
- 30:8f092276b2ba
ugoku
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 |
M_souta | 21:e3b58d675c1c | 25 | # define RS485_BUFFER_LINE 8 |
t_yamamoto | 0:669ef71cba68 | 26 | #else |
t_yamamoto | 0:669ef71cba68 | 27 | # define RS485_BUFFER_SIZE 0 |
M_souta | 21:e3b58d675c1c | 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 |
M_souta | 30:8f092276b2ba | 38 | #define USE_TAPELED_NUM 5 |
t_yamamoto | 0:669ef71cba68 | 39 | //Output |
t_yamamoto | 0:669ef71cba68 | 40 | |
t_yamamoto | 0:669ef71cba68 | 41 | //Input |
t_yamamoto | 0:669ef71cba68 | 42 | |
t_yamamoto | 0:669ef71cba68 | 43 | #define USE_SWITCH |
t_yamamoto | 0:669ef71cba68 | 44 | |
t_yamamoto | 0:669ef71cba68 | 45 | #define USE_POTENTIOMETER |
t_yamamoto | 0:669ef71cba68 | 46 | #ifdef USE_POTENTIOMETER |
t_yamamoto | 0:669ef71cba68 | 47 | # define USE_POTENTIOMETER_NUM 4 |
t_yamamoto | 0:669ef71cba68 | 48 | #else |
t_yamamoto | 0:669ef71cba68 | 49 | # define USE_POTENTIOMETER_NUM 0 |
t_yamamoto | 0:669ef71cba68 | 50 | #endif |
t_yamamoto | 0:669ef71cba68 | 51 | |
t_yamamoto | 0:669ef71cba68 | 52 | #define USE_INT |
t_yamamoto | 0:669ef71cba68 | 53 | |
t_yamamoto | 0:669ef71cba68 | 54 | //Input |
t_yamamoto | 0:669ef71cba68 | 55 | |
t_yamamoto | 0:669ef71cba68 | 56 | #define USE_ERRORCHECK |
t_yamamoto | 0:669ef71cba68 | 57 | #define USE_DRIVECHECK |
t_yamamoto | 0:669ef71cba68 | 58 | |
t_yamamoto | 0:669ef71cba68 | 59 | #define USE_SUBPROCESS |
t_yamamoto | 0:669ef71cba68 | 60 | #ifdef USE_SUBPROCESS |
t_yamamoto | 0:669ef71cba68 | 61 | # define USE_PROCESS_NUM 10 //0 ~ 10 |
t_yamamoto | 0:669ef71cba68 | 62 | # define DEFAULT_PROCESS 0 |
t_yamamoto | 0:669ef71cba68 | 63 | #endif |
t_yamamoto | 0:669ef71cba68 | 64 | |
t_yamamoto | 0:669ef71cba68 | 65 | |
t_yamamoto | 0:669ef71cba68 | 66 | #endif |