git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@379 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
e150283e1f
commit
da29078293
|
@ -89,6 +89,7 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
|
||||||
collide with external libraries.
|
collide with external libraries.
|
||||||
- Added a benchmark to the test suit that measures the mass reschedulation
|
- Added a benchmark to the test suit that measures the mass reschedulation
|
||||||
performance.
|
performance.
|
||||||
|
- Added a test_terminate_threads() function to the test framework.
|
||||||
- Made the Cortex-M3 port preemption code more readable.
|
- Made the Cortex-M3 port preemption code more readable.
|
||||||
|
|
||||||
*** 0.6.8 ***
|
*** 0.6.8 ***
|
||||||
|
|
|
@ -148,6 +148,14 @@ void test_assert_time_window(systime_t start, systime_t end) {
|
||||||
/*
|
/*
|
||||||
* Threads utils.
|
* Threads utils.
|
||||||
*/
|
*/
|
||||||
|
void test_terminate_threads(void) {
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < MAX_THREADS; i++)
|
||||||
|
if (threads[i])
|
||||||
|
chThdTerminate(threads[i]);
|
||||||
|
}
|
||||||
|
|
||||||
void test_wait_threads(void) {
|
void test_wait_threads(void) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ extern "C" {
|
||||||
void test_assert(bool_t condition, char * msg);
|
void test_assert(bool_t condition, char * msg);
|
||||||
void test_assert_sequence(char *expected);
|
void test_assert_sequence(char *expected);
|
||||||
void test_assert_time_window(systime_t start, systime_t end);
|
void test_assert_time_window(systime_t start, systime_t end);
|
||||||
|
void test_terminate_threads(void);
|
||||||
void test_wait_threads(void);
|
void test_wait_threads(void);
|
||||||
systime_t test_wait_tick(void);
|
systime_t test_wait_tick(void);
|
||||||
void test_cpu_pulse(systime_t ms);
|
void test_cpu_pulse(systime_t ms);
|
||||||
|
|
|
@ -236,11 +236,7 @@ static void bmk6_execute(void) {
|
||||||
ChkIntSources();
|
ChkIntSources();
|
||||||
#endif
|
#endif
|
||||||
} while (!test_timer_done);
|
} while (!test_timer_done);
|
||||||
chThdTerminate(threads[0]);
|
test_terminate_threads();
|
||||||
chThdTerminate(threads[1]);
|
|
||||||
chThdTerminate(threads[2]);
|
|
||||||
chThdTerminate(threads[3]);
|
|
||||||
chThdTerminate(threads[4]);
|
|
||||||
chSemReset(&sem1, 0);
|
chSemReset(&sem1, 0);
|
||||||
test_wait_threads();
|
test_wait_threads();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue