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/tasks.h@13:6a983f2d42ea, 2014-05-02 (annotated)
- Committer:
- pHysiX
- Date:
- Fri May 02 17:14:27 2014 +0000
- Revision:
- 13:6a983f2d42ea
- Parent:
- 12:953d25061417
- Child:
- 16:9072cd6fa8d1
Refixed usntable quaternion output. Need to optimise threads because DMP FIFO overflow is high
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 "rtos.h" |
pHysiX | 1:43f8ac7ca6d7 | 3 | |
pHysiX | 1:43f8ac7ca6d7 | 4 | #ifndef _TASKS_H_ |
pHysiX | 1:43f8ac7ca6d7 | 5 | #define _TASKS_H_ |
pHysiX | 1:43f8ac7ca6d7 | 6 | |
pHysiX | 1:43f8ac7ca6d7 | 7 | #include "Task1.h" |
pHysiX | 1:43f8ac7ca6d7 | 8 | #include "Task2.h" |
pHysiX | 1:43f8ac7ca6d7 | 9 | #include "Task3.h" |
pHysiX | 1:43f8ac7ca6d7 | 10 | #include "Task4.h" |
pHysiX | 1:43f8ac7ca6d7 | 11 | |
pHysiX | 13:6a983f2d42ea | 12 | // 1khz / (1 + 4) = 200 Hz (Fsample) |
pHysiX | 13:6a983f2d42ea | 13 | #define IMU_SAMPLE_RATE_DIVIDER 9 |
pHysiX | 13:6a983f2d42ea | 14 | // Fsample Hz / (1 + 1) = 100 Hz |
pHysiX | 13:6a983f2d42ea | 15 | #define IMU_FIFO_RATE_DIVIDER 0x00 |
pHysiX | 3:605fbcb54e75 | 16 | |
pHysiX | 13:6a983f2d42ea | 17 | #define TASK1_FREQUENCY 100 |
pHysiX | 10:ef5fe86f67fe | 18 | #define TASK2_FREQUENCY 200 |
pHysiX | 1:43f8ac7ca6d7 | 19 | #define TASK3_FREQUENCY 50 |
pHysiX | 10:ef5fe86f67fe | 20 | #define TASK4_FREQUENCY 200 |
pHysiX | 1:43f8ac7ca6d7 | 21 | |
pHysiX | 3:605fbcb54e75 | 22 | void createThreads(void); |
pHysiX | 1:43f8ac7ca6d7 | 23 | |
pHysiX | 1:43f8ac7ca6d7 | 24 | #endif |