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.
Diff: RTOS-Setup/inc/setup.h
- Revision:
- 2:ab967d7b4346
- Parent:
- 1:43f8ac7ca6d7
- Child:
- 3:605fbcb54e75
diff -r 43f8ac7ca6d7 -r ab967d7b4346 RTOS-Setup/inc/setup.h --- a/RTOS-Setup/inc/setup.h Tue Apr 29 11:02:18 2014 +0000 +++ b/RTOS-Setup/inc/setup.h Tue Apr 29 11:43:32 2014 +0000 @@ -4,17 +4,24 @@ #ifndef _SETUP_H_ #define _SETUP_H_ +#define ESC_FREQUENCY 400 + +#define ESC_PERIOD_US 1000000/ESC_FREQUENCY + extern Serial BT; extern DigitalOut BT_CMD; extern MPU6050 imu; extern uint16_t packetSize; -extern DigitalOut led1; -extern DigitalOut led2; -extern DigitalOut led3; -extern DigitalOut led4; +extern DigitalOut LED[]; +extern PwmOut ESC1; +extern PwmOut ESC2; +extern PwmOut ESC3; +extern PwmOut ESC4; + +bool setup_ESC(void); bool setup_led(void); bool setup_bt(void); bool setup_mpu6050(void);