Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
globals.h
- Committer:
- x58alex41
- Date:
- 2017-11-22
- Revision:
- 6:688449345fff
- Parent:
- 5:0503d1ebe4f7
- Child:
- 7:edd065946e9b
File content as of revision 6:688449345fff:
#ifndef _GLOBALS_
#define _GLOBALS_
#include "mbed.h"
extern AnalogIn LL_t;
extern AnalogIn L_t;
extern AnalogIn R_t;
extern AnalogIn RR_t;
extern DigitalOut LL_e;
extern DigitalOut L_e;
extern DigitalOut R_e;
extern DigitalOut RR_e;
extern InterruptIn cM1_1; //interrupt from encoders
extern InterruptIn cM1_2;
extern InterruptIn cM2_1;
extern InterruptIn cM2_2;
extern DigitalOut M1F; //motor direction and speed control
extern DigitalOut M2B;
extern DigitalOut M1B;
extern DigitalOut M2F;
extern Serial pc;
extern volatile unsigned long counterM1; // counter for hall sensors
extern volatile unsigned long counterM2;
#endif