Nagano kosen robocon
Embed:
(wiki syntax)
Show/hide line numbers
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 HUB_RS485_BUFFER_SIZE 26 + BLUETOOTH_BUFFER_SIZE + MOUNTING_MOTOR_NUM-13 00025 # define HUB_RS485_BUFFER_SIZE 250 00026 # define MASTER_RS485_RECEIVE_DATA_SIZE 2 00027 # define MASTER_RS485_SEND_DATA_SIZE 2 00028 #else 00029 # define HUB_RS485_BUFFER_SIZE 0 00030 # define MASTER_RS485_RECEIVE_DATA_SIZE 0 00031 # define MASTER_RS485_SEND_DATA_SIZE 0 00032 #endif 00033 00034 #define USE_SOLENOID 00035 00036 //Communication 00037 00038 //Output 00039 #define USE_LED 00040 #define USE_LED_NUM 3 00041 //Output 00042 00043 //Input 00044 00045 #define USE_SWITCH 00046 00047 #define USE_INT 00048 00049 //Input 00050 00051 // #define USE_ERRORCHECK 00052 // #define USE_DRIVECHECK 00053 00054 #define USE_SUBPROCESS 00055 #ifdef USE_SUBPROCESS 00056 # define USE_PROCESS_NUM 10 //0 ~ 10 00057 # define DEFAULT_PROCESS 0 00058 #endif 00059 00060 00061 #endif 00062
Generated on Wed Jul 13 2022 00:47:24 by
1.7.2