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
- Committer:
- pHysiX
- Date:
- 2014-05-02
- Revision:
- 12:953d25061417
- Parent:
- 10:ef5fe86f67fe
- Child:
- 13:6a983f2d42ea
File content as of revision 12:953d25061417:
#include "mbed.h" #include "rtos.h" #ifndef _TASKS_H_ #define _TASKS_H_ #include "Task1.h" #include "Task2.h" #include "Task3.h" #include "Task4.h" // 1khz / (1 + 9) = 100 Hz (Fsample) #define IMU_SAMPLE_RATE_DIVIDER 4 // Fsample Hz / (1 + 0) = 100 Hz #define IMU_FIFO_RATE_DIVIDER 0x01 #define TASK1_FREQUENCY 200 #define TASK2_FREQUENCY 200 #define TASK3_FREQUENCY 50 #define TASK4_FREQUENCY 200 void createThreads(void); #endif