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@5:0503d1ebe4f7, 2017-11-22 (annotated)
- Committer:
- x58alex41
- Date:
- Wed Nov 22 02:33:33 2017 +0000
- Revision:
- 5:0503d1ebe4f7
- Parent:
- 4:c8929825a5f4
- Child:
- 6:688449345fff
c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
x58alex41 | 0:9c49bdc7e402 | 1 | #ifndef _GLOBALS_ |
x58alex41 | 0:9c49bdc7e402 | 2 | #define _GLOBALS_ |
x58alex41 | 0:9c49bdc7e402 | 3 | |
x58alex41 | 0:9c49bdc7e402 | 4 | #include "mbed.h" |
x58alex41 | 5:0503d1ebe4f7 | 5 | |
x58alex41 | 4:c8929825a5f4 | 6 | extern AnalogIn LL_t; |
x58alex41 | 0:9c49bdc7e402 | 7 | extern AnalogIn L_t; |
x58alex41 | 0:9c49bdc7e402 | 8 | extern AnalogIn R_t; |
x58alex41 | 0:9c49bdc7e402 | 9 | extern AnalogIn RR_t; |
x58alex41 | 0:9c49bdc7e402 | 10 | |
x58alex41 | 0:9c49bdc7e402 | 11 | extern DigitalOut LL_e; |
x58alex41 | 0:9c49bdc7e402 | 12 | extern DigitalOut L_e; |
x58alex41 | 0:9c49bdc7e402 | 13 | extern DigitalOut R_e; |
x58alex41 | 0:9c49bdc7e402 | 14 | extern DigitalOut RR_e; |
x58alex41 | 0:9c49bdc7e402 | 15 | |
x58alex41 | 0:9c49bdc7e402 | 16 | |
x58alex41 | 0:9c49bdc7e402 | 17 | extern InterruptIn cM1_1; //interrupt from encoders |
x58alex41 | 0:9c49bdc7e402 | 18 | extern InterruptIn cM1_2; |
x58alex41 | 0:9c49bdc7e402 | 19 | extern InterruptIn cM2_1; |
x58alex41 | 0:9c49bdc7e402 | 20 | extern InterruptIn cM2_2; |
x58alex41 | 0:9c49bdc7e402 | 21 | |
x58alex41 | 0:9c49bdc7e402 | 22 | extern PwmOut M1F; //motor direction and speed control |
x58alex41 | 0:9c49bdc7e402 | 23 | extern PwmOut M2B; |
x58alex41 | 0:9c49bdc7e402 | 24 | extern PwmOut M1B; |
x58alex41 | 0:9c49bdc7e402 | 25 | extern PwmOut M2F; |
x58alex41 | 0:9c49bdc7e402 | 26 | extern Serial pc; |
x58alex41 | 0:9c49bdc7e402 | 27 | |
x58alex41 | 0:9c49bdc7e402 | 28 | extern volatile unsigned long counterM1; // counter for hall sensors |
x58alex41 | 0:9c49bdc7e402 | 29 | extern volatile unsigned long counterM2; |
x58alex41 | 0:9c49bdc7e402 | 30 | |
x58alex41 | 0:9c49bdc7e402 | 31 | #endif |