2016-04-16 23:38:00 -07:00
|
|
|
/*
|
|
|
|
ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2016-03-29 05:39:20 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hal.h"
|
|
|
|
#include "ch_test.h"
|
|
|
|
#include "test_root.h"
|
|
|
|
|
|
|
|
/**
|
2016-04-02 03:34:01 -07:00
|
|
|
* @file test_sequence_008.c
|
|
|
|
* @brief Test Sequence 008 code.
|
|
|
|
*
|
2016-03-31 07:03:43 -07:00
|
|
|
* @page test_sequence_008 [8] Mailboxes
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* File: @ref test_sequence_008.c
|
|
|
|
*
|
|
|
|
* <h2>Description</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* This sequence tests the ChibiOS/RT functionalities related to
|
|
|
|
* mailboxes.
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* <h2>Conditions</h2>
|
|
|
|
* This sequence is only executed if the following preprocessor condition
|
|
|
|
* evaluates to true:
|
2016-03-31 07:03:43 -07:00
|
|
|
* - CH_CFG_USE_MAILBOXES
|
2016-03-29 05:39:20 -07:00
|
|
|
* .
|
|
|
|
*
|
|
|
|
* <h2>Test Cases</h2>
|
|
|
|
* - @subpage test_008_001
|
|
|
|
* - @subpage test_008_002
|
2016-03-30 08:58:48 -07:00
|
|
|
* - @subpage test_008_003
|
2016-03-29 05:39:20 -07:00
|
|
|
* .
|
|
|
|
*/
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
#if (CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__)
|
2016-03-29 05:39:20 -07:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Shared code.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2016-04-16 23:38:00 -07:00
|
|
|
#define MB_SIZE 4
|
|
|
|
|
|
|
|
static msg_t mb_buffer[MB_SIZE];
|
2016-03-31 07:03:43 -07:00
|
|
|
static MAILBOX_DECL(mb1, mb_buffer, MB_SIZE);
|
2016-03-29 05:39:20 -07:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Test cases.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/**
|
2016-03-31 07:03:43 -07:00
|
|
|
* @page test_008_001 [8.1] Mailbox normal API, non-blocking tests
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* <h2>Description</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* The mailbox normal API is tested without triggering blocking
|
|
|
|
* conditions.
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* <h2>Test Steps</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* - [8.1.1] Testing the mailbox size.
|
|
|
|
* - [8.1.2] Resetting the mailbox, conditions are checked, no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.1.3] Filling the mailbox using chMBPost() and chMBPostAhead()
|
|
|
|
* once, no errors expected.
|
|
|
|
* - [8.1.4] Testing intermediate conditions. Data pointers must be
|
|
|
|
* aligned, semaphore counters are checked.
|
|
|
|
* - [8.1.5] Emptying the mailbox using chMBFetch(), no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.1.6] Posting and then fetching one more message, no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.1.7] Testing final conditions. Data pointers must be aligned to
|
|
|
|
* buffer start, semaphore counters are checked.
|
2016-03-29 05:39:20 -07:00
|
|
|
* .
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void test_008_001_setup(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
chMBObjectInit(&mb1, mb_buffer, MB_SIZE);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void test_008_001_teardown(void) {
|
|
|
|
chMBReset(&mb1);
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void test_008_001_execute(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
msg_t msg1, msg2;
|
2016-03-30 08:58:48 -07:00
|
|
|
unsigned i;
|
2016-03-29 05:39:20 -07:00
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.1] Testing the mailbox size.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(1);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "wrong size");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.2] Resetting the mailbox, conditions are checked, no errors
|
|
|
|
expected.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(2);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
chMBReset(&mb1);
|
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
|
|
|
|
test_assert_lock(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
|
|
|
|
test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.3] Filling the mailbox using chMBPost() and chMBPostAhead()
|
|
|
|
once, no errors expected.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(3);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
for (i = 0; i < MB_SIZE - 1; i++) {
|
|
|
|
msg1 = chMBPost(&mb1, 'B' + i, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
}
|
|
|
|
msg1 = chMBPostAhead(&mb1, 'A', TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.4] Testing intermediate conditions. Data pointers must be
|
|
|
|
aligned, semaphore counters are checked.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(4);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == 0, "still empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
|
|
|
|
test_assert_lock(mb1.rdptr == mb1.wrptr, "pointers not aligned");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.5] Emptying the mailbox using chMBFetch(), no errors
|
|
|
|
expected.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(5);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
for (i = 0; i < MB_SIZE; i++) {
|
|
|
|
msg1 = chMBFetch(&mb1, &msg2, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
test_emit_token(msg2);
|
|
|
|
}
|
|
|
|
test_assert_sequence("ABCD", "wrong get sequence");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.6] Posting and then fetching one more message, no errors
|
|
|
|
expected.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(6);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
msg1 = chMBPost(&mb1, 'B' + i, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
msg1 = chMBFetch(&mb1, &msg2, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.1.7] Testing final conditions. Data pointers must be aligned to
|
|
|
|
buffer start, semaphore counters are checked.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(7);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
|
|
|
|
test_assert(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
|
|
|
|
test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static const testcase_t test_008_001 = {
|
2016-03-31 07:03:43 -07:00
|
|
|
"Mailbox normal API, non-blocking tests",
|
2016-03-29 05:39:20 -07:00
|
|
|
test_008_001_setup,
|
2016-03-31 07:03:43 -07:00
|
|
|
test_008_001_teardown,
|
2016-03-29 05:39:20 -07:00
|
|
|
test_008_001_execute
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2016-03-31 07:03:43 -07:00
|
|
|
* @page test_008_002 [8.2] Mailbox I-Class API, non-blocking tests
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* <h2>Description</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* The mailbox I-Class API is tested without triggering blocking
|
|
|
|
* conditions.
|
2016-03-29 05:39:20 -07:00
|
|
|
*
|
|
|
|
* <h2>Test Steps</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* - [8.2.1] Testing the mailbox size.
|
|
|
|
* - [8.2.2] Resetting the mailbox, conditions are checked, no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.2.3] Filling the mailbox using chMBPostI() and chMBPostAheadI()
|
|
|
|
* once, no errors expected.
|
|
|
|
* - [8.2.4] Testing intermediate conditions. Data pointers must be
|
|
|
|
* aligned, semaphore counters are checked.
|
|
|
|
* - [8.2.5] Emptying the mailbox using chMBFetchI(), no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.2.6] Posting and then fetching one more message, no errors
|
|
|
|
* expected.
|
|
|
|
* - [8.2.7] Testing final conditions. Data pointers must be aligned to
|
|
|
|
* buffer start, semaphore counters are checked.
|
2016-03-29 05:39:20 -07:00
|
|
|
* .
|
|
|
|
*/
|
|
|
|
|
2016-03-30 08:58:48 -07:00
|
|
|
static void test_008_002_setup(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
chMBObjectInit(&mb1, mb_buffer, MB_SIZE);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void test_008_002_teardown(void) {
|
|
|
|
chMBReset(&mb1);
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
2016-03-29 05:39:20 -07:00
|
|
|
static void test_008_002_execute(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
msg_t msg1, msg2;
|
2016-03-30 08:58:48 -07:00
|
|
|
unsigned i;
|
2016-03-29 05:39:20 -07:00
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.1] Testing the mailbox size.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(1);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "wrong size");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.2] Resetting the mailbox, conditions are checked, no errors
|
|
|
|
expected.*/
|
2016-03-29 05:39:20 -07:00
|
|
|
test_set_step(2);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
chSysLock();
|
|
|
|
chMBResetI(&mb1);
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
|
|
|
|
test_assert_lock(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
|
|
|
|
test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.3] Filling the mailbox using chMBPostI() and chMBPostAheadI()
|
|
|
|
once, no errors expected.*/
|
2016-03-30 08:58:48 -07:00
|
|
|
test_set_step(3);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
for (i = 0; i < MB_SIZE - 1; i++) {
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBPostI(&mb1, 'B' + i);
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
}
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBPostAheadI(&mb1, 'A');
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.4] Testing intermediate conditions. Data pointers must be
|
|
|
|
aligned, semaphore counters are checked.*/
|
2016-03-30 08:58:48 -07:00
|
|
|
test_set_step(4);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == 0, "still empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
|
|
|
|
test_assert_lock(mb1.rdptr == mb1.wrptr, "pointers not aligned");
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.5] Emptying the mailbox using chMBFetchI(), no errors
|
|
|
|
expected.*/
|
2016-03-30 08:58:48 -07:00
|
|
|
test_set_step(5);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
for (i = 0; i < MB_SIZE; i++) {
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBFetchI(&mb1, &msg2);
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
test_emit_token(msg2);
|
|
|
|
}
|
|
|
|
test_assert_sequence("ABCD", "wrong get sequence");
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.2.6] Posting and then fetching one more message, no errors
|
|
|
|
expected.*/
|
2016-03-30 08:58:48 -07:00
|
|
|
test_set_step(6);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
msg1 = chMBPost(&mb1, 'B' + i, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
msg1 = chMBFetch(&mb1, &msg2, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* [8.2.7] Testing final conditions. Data pointers must be aligned to
|
|
|
|
buffer start, semaphore counters are checked.*/
|
|
|
|
test_set_step(7);
|
|
|
|
{
|
|
|
|
test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
|
|
|
|
test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
|
|
|
|
test_assert(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
|
|
|
|
test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
|
2016-03-29 05:39:20 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static const testcase_t test_008_002 = {
|
2016-03-31 07:03:43 -07:00
|
|
|
"Mailbox I-Class API, non-blocking tests",
|
2016-03-30 08:58:48 -07:00
|
|
|
test_008_002_setup,
|
2016-03-31 07:03:43 -07:00
|
|
|
test_008_002_teardown,
|
2016-03-29 05:39:20 -07:00
|
|
|
test_008_002_execute
|
|
|
|
};
|
2016-03-30 08:58:48 -07:00
|
|
|
|
|
|
|
/**
|
2016-03-31 07:03:43 -07:00
|
|
|
* @page test_008_003 [8.3] Mailbox timeouts
|
2016-03-30 08:58:48 -07:00
|
|
|
*
|
|
|
|
* <h2>Description</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* The mailbox API is tested for timeouts.
|
2016-03-30 08:58:48 -07:00
|
|
|
*
|
|
|
|
* <h2>Test Steps</h2>
|
2016-03-31 07:03:43 -07:00
|
|
|
* - [8.3.1] Filling the mailbox.
|
|
|
|
* - [8.3.2] Testing chMBPost(), chMBPostI(), chMBPostAhead() and
|
|
|
|
* chMBPostAheadI() timeout.
|
|
|
|
* - [8.3.3] Resetting the mailbox.
|
|
|
|
* - [8.3.4] Testing chMBFetch() and chMBFetchI() timeout.
|
2016-03-30 08:58:48 -07:00
|
|
|
* .
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void test_008_003_setup(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
chMBObjectInit(&mb1, mb_buffer, MB_SIZE);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void test_008_003_teardown(void) {
|
|
|
|
chMBReset(&mb1);
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void test_008_003_execute(void) {
|
2016-03-31 07:03:43 -07:00
|
|
|
msg_t msg1, msg2;
|
|
|
|
unsigned i;
|
2016-03-30 08:58:48 -07:00
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
/* [8.3.1] Filling the mailbox.*/
|
2016-03-30 08:58:48 -07:00
|
|
|
test_set_step(1);
|
|
|
|
{
|
2016-03-31 07:03:43 -07:00
|
|
|
for (i = 0; i < MB_SIZE; i++) {
|
|
|
|
msg1 = chMBPost(&mb1, 'B' + i, TIME_INFINITE);
|
|
|
|
test_assert(msg1 == MSG_OK, "wrong wake-up message");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* [8.3.2] Testing chMBPost(), chMBPostI(), chMBPostAhead() and
|
|
|
|
chMBPostAheadI() timeout.*/
|
|
|
|
test_set_step(2);
|
|
|
|
{
|
|
|
|
msg1 = chMBPost(&mb1, 'X', 1);
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBPostI(&mb1, 'X');
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
|
|
|
msg1 = chMBPostAhead(&mb1, 'X', 1);
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBPostAheadI(&mb1, 'X');
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* [8.3.3] Resetting the mailbox.*/
|
|
|
|
test_set_step(3);
|
|
|
|
{
|
|
|
|
chMBReset(&mb1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* [8.3.4] Testing chMBFetch() and chMBFetchI() timeout.*/
|
|
|
|
test_set_step(4);
|
|
|
|
{
|
|
|
|
msg1 = chMBFetch(&mb1, &msg2, 1);
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
|
|
|
chSysLock();
|
|
|
|
msg1 = chMBFetchI(&mb1, &msg2);
|
|
|
|
chSysUnlock();
|
|
|
|
test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");
|
2016-03-30 08:58:48 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static const testcase_t test_008_003 = {
|
2016-03-31 07:03:43 -07:00
|
|
|
"Mailbox timeouts",
|
2016-03-30 08:58:48 -07:00
|
|
|
test_008_003_setup,
|
2016-03-31 07:03:43 -07:00
|
|
|
test_008_003_teardown,
|
2016-03-30 08:58:48 -07:00
|
|
|
test_008_003_execute
|
|
|
|
};
|
2016-03-29 05:39:20 -07:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Exported data.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/**
|
2016-03-31 07:03:43 -07:00
|
|
|
* @brief Mailboxes.
|
2016-03-29 05:39:20 -07:00
|
|
|
*/
|
|
|
|
const testcase_t * const test_sequence_008[] = {
|
|
|
|
&test_008_001,
|
|
|
|
&test_008_002,
|
2016-03-30 08:58:48 -07:00
|
|
|
&test_008_003,
|
2016-03-29 05:39:20 -07:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2016-03-31 07:03:43 -07:00
|
|
|
#endif /* CH_CFG_USE_MAILBOXES */
|