ttt

Dependencies:   mbed TrapezoidControl QEI Pulse LM61CIZ

System/Using.h

Committer:
M_souta
Date:
2019-09-09
Revision:
21:e3b58d675c1c
Parent:
0:669ef71cba68

File content as of revision 21:e3b58d675c1c:

#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
#   define RS485_BUFFER_LINE 8
#else
#	define RS485_BUFFER_SIZE 0
#   define RS485_BUFFER_LINE 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