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.
RTOS-Setup/inc/setup.h@2:ab967d7b4346, 2014-04-29 (annotated)
- Committer:
- pHysiX
- Date:
- Tue Apr 29 11:43:32 2014 +0000
- Revision:
- 2:ab967d7b4346
- Parent:
- 1:43f8ac7ca6d7
- Child:
- 3:605fbcb54e75
Added in simple ESC initialise
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pHysiX | 1:43f8ac7ca6d7 | 1 | #include "mbed.h" |
| pHysiX | 1:43f8ac7ca6d7 | 2 | #include "MPU6050_6Axis_MotionApps20.h" |
| pHysiX | 1:43f8ac7ca6d7 | 3 | |
| pHysiX | 1:43f8ac7ca6d7 | 4 | #ifndef _SETUP_H_ |
| pHysiX | 1:43f8ac7ca6d7 | 5 | #define _SETUP_H_ |
| pHysiX | 1:43f8ac7ca6d7 | 6 | |
| pHysiX | 2:ab967d7b4346 | 7 | #define ESC_FREQUENCY 400 |
| pHysiX | 2:ab967d7b4346 | 8 | |
| pHysiX | 2:ab967d7b4346 | 9 | #define ESC_PERIOD_US 1000000/ESC_FREQUENCY |
| pHysiX | 2:ab967d7b4346 | 10 | |
| pHysiX | 1:43f8ac7ca6d7 | 11 | extern Serial BT; |
| pHysiX | 1:43f8ac7ca6d7 | 12 | extern DigitalOut BT_CMD; |
| pHysiX | 1:43f8ac7ca6d7 | 13 | |
| pHysiX | 1:43f8ac7ca6d7 | 14 | extern MPU6050 imu; |
| pHysiX | 1:43f8ac7ca6d7 | 15 | extern uint16_t packetSize; |
| pHysiX | 1:43f8ac7ca6d7 | 16 | |
| pHysiX | 2:ab967d7b4346 | 17 | extern DigitalOut LED[]; |
| pHysiX | 1:43f8ac7ca6d7 | 18 | |
| pHysiX | 2:ab967d7b4346 | 19 | extern PwmOut ESC1; |
| pHysiX | 2:ab967d7b4346 | 20 | extern PwmOut ESC2; |
| pHysiX | 2:ab967d7b4346 | 21 | extern PwmOut ESC3; |
| pHysiX | 2:ab967d7b4346 | 22 | extern PwmOut ESC4; |
| pHysiX | 2:ab967d7b4346 | 23 | |
| pHysiX | 2:ab967d7b4346 | 24 | bool setup_ESC(void); |
| pHysiX | 1:43f8ac7ca6d7 | 25 | bool setup_led(void); |
| pHysiX | 1:43f8ac7ca6d7 | 26 | bool setup_bt(void); |
| pHysiX | 1:43f8ac7ca6d7 | 27 | bool setup_mpu6050(void); |
| pHysiX | 1:43f8ac7ca6d7 | 28 | |
| pHysiX | 1:43f8ac7ca6d7 | 29 | #endif |