yup

Dependencies:   mbed

Fork of analoghalls by Bayley Wang

shared.h

Committer:
nki
Date:
2015-02-26
Revision:
6:4960629abb90
Parent:
5:eeb8af99cb6c

File content as of revision 6:4960629abb90:

#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, ia, ib;
extern Motor* motor;
extern Ticker dtc_upd_ticker, throttle_upd_ticker, isense_upd_ticker;
extern InterruptIn haI, hbI, hcI;
extern float throttle_read;
extern float ia_read;
extern float ib_read;
#ifdef __DEBUG
extern float *fbuffer;
extern int bufidx, skipidx;
#endif

#endif