potato

Dependencies:   mbed

Fork of analoghalls by N K

shared.h

Committer:
bwang
Date:
2015-02-26
Revision:
4:f18f6bc5e1fd
Parent:
3:86ccde39f61b

File content as of revision 4:f18f6bc5e1fd:

#ifndef __SHARED_H
#define __SHARED_H

#include "constants.h"
#include "mbed.h"

extern PwmOut pha, phb, phc;
extern DigitalOut en;
extern AnalogIn throttle, analoga, analogb;
extern Motor* motor;
extern Ticker dtc_upd_ticker, throttle_upd_ticker;
extern InterruptIn haI, hbI, hcI;
extern float throttle_read;
#ifdef __DEBUG
extern float *fbuffer;
extern int bufidx, skipidx;
#endif

#endif