git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1672 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
9396b6dc4f
commit
4d916c9d6c
|
@ -72,6 +72,8 @@
|
||||||
shell command.
|
shell command.
|
||||||
- NEW: Added BOARD_NAME macro to the various board.h files.
|
- NEW: Added BOARD_NAME macro to the various board.h files.
|
||||||
- NEW: Added a MemoryStream class under ./os/various.
|
- NEW: Added a MemoryStream class under ./os/various.
|
||||||
|
- CHANGE: Removed an instance of a structure without name from test.h for
|
||||||
|
increased portability of the test suite.
|
||||||
|
|
||||||
*** 1.5.1 ***
|
*** 1.5.1 ***
|
||||||
- FIX: Fixed insufficient stack space for the idle thread in the ARMCM3 port
|
- FIX: Fixed insufficient stack space for the idle thread in the ARMCM3 port
|
||||||
|
|
|
@ -70,7 +70,8 @@ Thread *threads[MAX_THREADS];
|
||||||
/*
|
/*
|
||||||
* Pointers to the working areas.
|
* Pointers to the working areas.
|
||||||
*/
|
*/
|
||||||
void * const wa[5] = {test.waT0, test.waT1, test.waT2, test.waT3, test.waT4};
|
void * const wa[5] = {test.wa.T0, test.wa.T1, test.wa.T2,
|
||||||
|
test.wa.T3, test.wa.T4};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Console output.
|
* Console output.
|
||||||
|
|
16
test/test.h
16
test/test.h
|
@ -31,7 +31,9 @@
|
||||||
#define MAX_THREADS 5
|
#define MAX_THREADS 5
|
||||||
#define MAX_TOKENS 16
|
#define MAX_TOKENS 16
|
||||||
|
|
||||||
#if defined(CH_ARCHITECTURE_AVR) || defined(CH_ARCHITECTURE_MSP430)
|
#if defined(CH_ARCHITECTURE_AVR) || \
|
||||||
|
defined(CH_ARCHITECTURE_MSP430) || \
|
||||||
|
defined(CH_ARCHITECTURE_STM8)
|
||||||
#define THREADS_STACK_SIZE 48
|
#define THREADS_STACK_SIZE 48
|
||||||
#elif defined(CH_ARCHITECTURE_SIMIA32)
|
#elif defined(CH_ARCHITECTURE_SIMIA32)
|
||||||
#define THREADS_STACK_SIZE 512
|
#define THREADS_STACK_SIZE 512
|
||||||
|
@ -50,12 +52,12 @@ struct testcase {
|
||||||
#ifndef __DOXYGEN__
|
#ifndef __DOXYGEN__
|
||||||
union test_buffers {
|
union test_buffers {
|
||||||
struct {
|
struct {
|
||||||
WORKING_AREA(waT0, THREADS_STACK_SIZE);
|
WORKING_AREA(T0, THREADS_STACK_SIZE);
|
||||||
WORKING_AREA(waT1, THREADS_STACK_SIZE);
|
WORKING_AREA(T1, THREADS_STACK_SIZE);
|
||||||
WORKING_AREA(waT2, THREADS_STACK_SIZE);
|
WORKING_AREA(T2, THREADS_STACK_SIZE);
|
||||||
WORKING_AREA(waT3, THREADS_STACK_SIZE);
|
WORKING_AREA(T3, THREADS_STACK_SIZE);
|
||||||
WORKING_AREA(waT4, THREADS_STACK_SIZE);
|
WORKING_AREA(T4, THREADS_STACK_SIZE);
|
||||||
};
|
} wa;
|
||||||
uint8_t buffer[WA_SIZE * 5];
|
uint8_t buffer[WA_SIZE * 5];
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
* variables are explicitly initialized in each test case. It is done in order
|
* variables are explicitly initialized in each test case. It is done in order
|
||||||
* to test the macros.
|
* to test the macros.
|
||||||
*/
|
*/
|
||||||
static MAILBOX_DECL(mb1, test.waT0, MB_SIZE);
|
static MAILBOX_DECL(mb1, test.wa.T0, MB_SIZE);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @page test_mbox_001 Queuing and timeouts
|
* @page test_mbox_001 Queuing and timeouts
|
||||||
|
@ -76,7 +76,7 @@ static char *mbox1_gettest(void) {
|
||||||
|
|
||||||
static void mbox1_setup(void) {
|
static void mbox1_setup(void) {
|
||||||
|
|
||||||
chMBInit(&mb1, (msg_t *)test.waT0, MB_SIZE);
|
chMBInit(&mb1, (msg_t *)test.wa.T0, MB_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mbox1_execute(void) {
|
static void mbox1_execute(void) {
|
||||||
|
|
|
@ -62,8 +62,8 @@ static void notify(void) {}
|
||||||
* variables are explicitly initialized in each test case. It is done in order
|
* variables are explicitly initialized in each test case. It is done in order
|
||||||
* to test the macros.
|
* to test the macros.
|
||||||
*/
|
*/
|
||||||
static INPUTQUEUE_DECL(iq, test.waT0, TEST_QUEUES_SIZE, notify);
|
static INPUTQUEUE_DECL(iq, test.wa.T0, TEST_QUEUES_SIZE, notify);
|
||||||
static OUTPUTQUEUE_DECL(oq, test.waT1, TEST_QUEUES_SIZE, notify);
|
static OUTPUTQUEUE_DECL(oq, test.wa.T1, TEST_QUEUES_SIZE, notify);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @page test_queues_001 Input Queues functionality and APIs
|
* @page test_queues_001 Input Queues functionality and APIs
|
||||||
|
|
Loading…
Reference in New Issue