![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
rainbow
Diff: setting.h
- Revision:
- 7:e9086c72bb22
- Parent:
- 5:a4319f79457b
- Child:
- 11:82d8768d7351
diff -r df07d3491e3a -r e9086c72bb22 setting.h --- a/setting.h Tue Aug 20 10:40:27 2019 +0000 +++ b/setting.h Tue Aug 20 12:27:19 2019 +0000 @@ -3,11 +3,6 @@ #define PI 3.141592 -extern DigitalOut check; -extern DigitalOut check_2; -extern AnalogOut dac_1; -extern AnalogOut dac_2; - // pwm #define PIN_V PB_7 #define PIN_W PB_6 @@ -25,6 +20,11 @@ #define DT_20k 0.00005 #define DT_40k 0.000025 +extern DigitalOut check; +extern DigitalOut check_2; +extern AnalogOut dac_1; +extern AnalogOut dac_2; + extern double dtc_v; extern double dtc_w; @@ -40,4 +40,16 @@ extern DigitalOut enc_cs; // UART -extern Serial pc; //Serial pc(PA_9,PA_10); _ UART \ No newline at end of file +extern Serial pc; //Serial pc(PA_9,PA_10); _ UART + +// CAN +extern CAN can; +extern CANMessage msg; + +// Board Information + + +// User Function + +void CurrentControl(); +void ValveControl(unsigned int ControlMode);