ffwe

Dependencies:   ADXL345_I2C HX711 MPU6050 PCF8563

Committer:
3050311118
Date:
Mon Jul 17 14:05:07 2017 +0000
Revision:
0:24fa1506a4b6
fqfqw

Who changed what in which revision?

UserRevisionLine numberNew contents of line
3050311118 0:24fa1506a4b6 1 #include "mbed.h"
3050311118 0:24fa1506a4b6 2 #include "rtos.h"
3050311118 0:24fa1506a4b6 3
3050311118 0:24fa1506a4b6 4 //���ڶ���
3050311118 0:24fa1506a4b6 5 Serial usart1(PA_9,PA_10);
3050311118 0:24fa1506a4b6 6 Serial usart2(USBTX,USBRX);
3050311118 0:24fa1506a4b6 7 Serial usart3(PB_10,PB_11);
3050311118 0:24fa1506a4b6 8 Serial usart4(PC_10,PC_11);
3050311118 0:24fa1506a4b6 9 //ģ��ڶ���
3050311118 0:24fa1506a4b6 10 AnalogIn ADC_ref431(PB_1);
3050311118 0:24fa1506a4b6 11 AnalogIn ADC_safeadj(PA_4);
3050311118 0:24fa1506a4b6 12 AnalogIn ADC_pt100A(PA_5);
3050311118 0:24fa1506a4b6 13 AnalogIn ADC_pt100B(PA_6);
3050311118 0:24fa1506a4b6 14 AnalogIn ADC_pt1000C(PA_7);
3050311118 0:24fa1506a4b6 15 //�������
3050311118 0:24fa1506a4b6 16 AnalogIn ADC_MOTOR_TORQUE(PB_0);
3050311118 0:24fa1506a4b6 17 PwmOut PWM_MOTOR(PC_8);
3050311118 0:24fa1506a4b6 18 InterruptIn INT_MOTOR(PC_4);
3050311118 0:24fa1506a4b6 19 DigitalOut O_MOTOR_CWCCW(PC_3);
3050311118 0:24fa1506a4b6 20 DigitalOut O_MOTOR_START(PC_2);
3050311118 0:24fa1506a4b6 21 //���ȿ���
3050311118 0:24fa1506a4b6 22 DigitalOut O_HEAT(PC_8);
3050311118 0:24fa1506a4b6 23 DigitalOut O_RELAY(PC_14);
3050311118 0:24fa1506a4b6 24 //�������
3050311118 0:24fa1506a4b6 25 DigitalIn I_UPKEY(PA_15);
3050311118 0:24fa1506a4b6 26 DigitalIn I_DOWNKEY(PB_4);
3050311118 0:24fa1506a4b6 27 DigitalIn I_LEFTKEY(PB_8);
3050311118 0:24fa1506a4b6 28 DigitalIn I_RIGHTKEY(PB_12);
3050311118 0:24fa1506a4b6 29
3050311118 0:24fa1506a4b6 30 DigitalIn I_ENCODERKEY(PA_8);
3050311118 0:24fa1506a4b6 31
3050311118 0:24fa1506a4b6 32