daad
Dependencies: mbed TrapezoidControl QEI
Diff: System/Using.h
- Revision:
- 0:669ef71cba68
- Child:
- 21:1f1e9c585da8
diff -r 000000000000 -r 669ef71cba68 System/Using.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/System/Using.h Sat Sep 08 06:05:22 2018 +0000 @@ -0,0 +1,63 @@ +#ifndef USING_H_ +#define USING_H_ + +//Communication +#define USE_MU + +#define USE_BLUETOOTH +#ifdef USE_BLUETOOTH +# define BLUETOOTH_BUFFER_SIZE 64 +const char disconnect = 0x03; +#else +# define BLUETOOTH_BUFFER_SIZE 0 +#endif + +#define USE_MOTOR +#ifdef USE_MOTOR +# define MOUNTING_MOTOR_NUM 13 +#else +# define MOUNTING_MOTOR_NUM 0 +#endif + +#define USE_RS485 +#ifdef USE_RS485 +# define RS485_BUFFER_SIZE 26 + BLUETOOTH_BUFFER_SIZE + MOUNTING_MOTOR_NUM-13 +#else +# define RS485_BUFFER_SIZE 0 +#endif + +#define USE_SOLENOID + +//Communication + +//Output +#define USE_LED +#define USE_LED_NUM 4 +//Output + +//Input + +#define USE_SWITCH + +#define USE_POTENTIOMETER +#ifdef USE_POTENTIOMETER +# define USE_POTENTIOMETER_NUM 4 +#else +# define USE_POTENTIOMETER_NUM 0 +#endif + +#define USE_INT + +//Input + +#define USE_ERRORCHECK +#define USE_DRIVECHECK + +#define USE_SUBPROCESS +#ifdef USE_SUBPROCESS +# define USE_PROCESS_NUM 10 //0 ~ 10 +# define DEFAULT_PROCESS 0 +#endif + + +#endif