yup

Dependencies:   mbed

Fork of analoghalls by Bayley Wang

Committer:
nki
Date:
Thu Feb 26 14:09:19 2015 +0000
Revision:
6:4960629abb90
Parent:
5:eeb8af99cb6c
LOLOL PROPROTIONAL CURENT CONTROL;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nki 0:9753f3c2e5ca 1 #ifndef __SHARED_H
nki 0:9753f3c2e5ca 2 #define __SHARED_H
nki 0:9753f3c2e5ca 3
nki 0:9753f3c2e5ca 4 #include "constants.h"
nki 0:9753f3c2e5ca 5 #include "mbed.h"
nki 0:9753f3c2e5ca 6
nki 0:9753f3c2e5ca 7 extern PwmOut pha, phb, phc;
bwang 1:70eed554399b 8 extern DigitalOut en;
nki 5:eeb8af99cb6c 9 extern AnalogIn throttle, analoga, analogb, ia, ib;
nki 0:9753f3c2e5ca 10 extern Motor* motor;
nki 5:eeb8af99cb6c 11 extern Ticker dtc_upd_ticker, throttle_upd_ticker, isense_upd_ticker;
nki 0:9753f3c2e5ca 12 extern InterruptIn haI, hbI, hcI;
bwang 1:70eed554399b 13 extern float throttle_read;
nki 5:eeb8af99cb6c 14 extern float ia_read;
nki 5:eeb8af99cb6c 15 extern float ib_read;
bwang 3:86ccde39f61b 16 #ifdef __DEBUG
bwang 3:86ccde39f61b 17 extern float *fbuffer;
bwang 4:f18f6bc5e1fd 18 extern int bufidx, skipidx;
bwang 3:86ccde39f61b 19 #endif
bwang 3:86ccde39f61b 20
nki 0:9753f3c2e5ca 21 #endif