huhuh

Dependencies:   mbed QEI

Fork of MainBoard2018_Auto_Master_A by Taiki Maruyama

System/Using.h

Committer:
7ka884
Date:
2018-10-01
Revision:
6:10e22bc327ce
Parent:
0:669ef71cba68

File content as of revision 6:10e22bc327ce:

#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