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@3:17e97ea67141, 2017-11-22 (annotated)
- Committer:
- lzl
- Date:
- Wed Nov 22 02:24:57 2017 +0000
- Revision:
- 3:17e97ea67141
- Parent:
- 1:ba2946ff6770
123456
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 | 0:9c49bdc7e402 | 5 | |
| lzl | 3:17e97ea67141 | 6 | extern AnalogIn LL_t1;//123456 |
| lzl | 3:17e97ea67141 | 7 | |
| x58alex41 | 0:9c49bdc7e402 | 8 | extern AnalogIn L_t; |
| x58alex41 | 0:9c49bdc7e402 | 9 | extern AnalogIn R_t; |
| x58alex41 | 0:9c49bdc7e402 | 10 | extern AnalogIn RR_t; |
| x58alex41 | 0:9c49bdc7e402 | 11 | |
| x58alex41 | 0:9c49bdc7e402 | 12 | extern DigitalOut LL_e; |
| x58alex41 | 0:9c49bdc7e402 | 13 | extern DigitalOut L_e; |
| x58alex41 | 0:9c49bdc7e402 | 14 | extern DigitalOut R_e; |
| x58alex41 | 0:9c49bdc7e402 | 15 | extern DigitalOut RR_e; |
| x58alex41 | 0:9c49bdc7e402 | 16 | |
| x58alex41 | 0:9c49bdc7e402 | 17 | |
| x58alex41 | 0:9c49bdc7e402 | 18 | extern InterruptIn cM1_1; //interrupt from encoders |
| x58alex41 | 0:9c49bdc7e402 | 19 | extern InterruptIn cM1_2; |
| x58alex41 | 0:9c49bdc7e402 | 20 | extern InterruptIn cM2_1; |
| x58alex41 | 0:9c49bdc7e402 | 21 | extern InterruptIn cM2_2; |
| x58alex41 | 0:9c49bdc7e402 | 22 | |
| x58alex41 | 0:9c49bdc7e402 | 23 | extern PwmOut M1F; //motor direction and speed control |
| x58alex41 | 0:9c49bdc7e402 | 24 | extern PwmOut M2B; |
| x58alex41 | 0:9c49bdc7e402 | 25 | extern PwmOut M1B; |
| x58alex41 | 0:9c49bdc7e402 | 26 | extern PwmOut M2F; |
| x58alex41 | 0:9c49bdc7e402 | 27 | extern Serial pc; |
| x58alex41 | 0:9c49bdc7e402 | 28 | |
| x58alex41 | 0:9c49bdc7e402 | 29 | extern volatile unsigned long counterM1; // counter for hall sensors |
| x58alex41 | 0:9c49bdc7e402 | 30 | extern volatile unsigned long counterM2; |
| x58alex41 | 0:9c49bdc7e402 | 31 | |
| x58alex41 | 0:9c49bdc7e402 | 32 | #endif |