-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SCHEDULER ARCH] Wrote unit tests for scheduler + tick interrupt impl…
…ementation
- Loading branch information
Showing
11 changed files
with
198 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#ifndef SCHEDULER_H | ||
#define SCHEDULER_H | ||
|
||
#include "task.h" | ||
#include "rtos_status.h" | ||
#include <string.h> | ||
|
||
#include "rtos_status.h" | ||
#include "task.h" | ||
|
||
RTOSStatus init_scheduler(); | ||
RTOSStatus create_task(TaskFunction task_function, uint32_t period, uint32_t deadline, const char *name); | ||
RTOSStatus start_scheduler(); | ||
RTOSStatus create_task(TaskFunction taskFunction, uint8_t priority, const char *name); | ||
RTOSStatus tick_handler(); | ||
RTOSStatus update_task_deadlines(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#include "CppUTest/TestHarness.h" | ||
|
||
// create a test group | ||
TEST_GROUP(dummy_test){ | ||
TEST_GROUP(DummyTest){ | ||
|
||
}; | ||
|
||
// create a test for that test group | ||
TEST(dummy_test, pass_me) { CHECK_EQUAL(1, 1); } | ||
TEST(DummyTest, PassMe) { CHECK_EQUAL(1, 1); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.