git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12658 110e8d01-0319-4d1e-a829-52ad28d1bb01

This commit is contained in:
Giovanni Di Sirio 2019-02-11 13:07:01 +00:00
parent a5f9798f6f
commit 23ce2e2a77
15 changed files with 37 additions and 45 deletions

View File

@ -103,6 +103,7 @@ LDSCRIPT= $(STARTUPLD)/SPC560D40.ld
# C sources here.
CSRC = $(STARTUPSRC) \
$(KERNSRC) \
$(LIBSRC) \
$(PORTSRC) \
$(OSALSRC) \
$(HALSRC) \
@ -119,7 +120,7 @@ ASMSRC =
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
INCDIR = $(CHIBIOS)/os/license \
$(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
$(STARTUPINC) $(KERNINC) $(LIBINC) $(PORTINC) $(OSALINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
$(CHIBIOS)/os/various

View File

@ -123,7 +123,6 @@ THD_FUNCTION(Thread2, arg) {
*/
THD_TABLE_BEGIN
THD_TABLE_THREAD(0, "blinker", waThread1, Thread1, NULL)
THD_TABLE_THREAD(1, "test_support", wa_test_support, test_support, (void *)&nil.threads[2])
THD_TABLE_THREAD(2, "tester", waThread2, Thread2, NULL)
THD_TABLE_END

View File

@ -82,6 +82,12 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../..
CONFDIR := .
BUILDDIR := ./build
DEPDIR := ./.dep
# Licensing files.
include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc560bxx.mk
# HAL-OSAL files (optional).
@ -103,29 +109,18 @@ include $(CHIBIOS)/os/various/shell/shell.mk
LDSCRIPT= $(STARTUPLD)/SPC560B60.ld
# C sources here.
CSRC = $(STARTUPSRC) \
$(KERNSRC) \
$(PORTSRC) \
$(OSALSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
CSRC = $(ALLCSRC) \
$(TESTSRC) \
$(STREAMSSRC) \
$(SHELLSRC) \
main.c
# C++ sources here.
CPPSRC =
CPPSRC = $(ALLCPPSRC)
# List ASM source files here
ASMSRC =
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
ASMSRC = $(ALLASMSRC)
ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CHIBIOS)/os/license \
$(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
$(STREAMSINC) $(SHELLINC)
INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
#
# Project, sources and paths

View File

@ -153,7 +153,7 @@ ULIBS =
# Compiler settings
#
MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
MCU = e200zx -meabi -msdata=none -mregnames # HighTec
#MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
TRGT = ppc-vle-

View File

@ -82,6 +82,12 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../..
CONFDIR := .
BUILDDIR := ./build
DEPDIR := ./.dep
# Licensing files.
include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc560pxx.mk
# HAL-OSAL files (optional).
@ -103,29 +109,18 @@ include $(CHIBIOS)/os/various/shell/shell.mk
LDSCRIPT= $(STARTUPLD)/SPC560P50.ld
# C sources here.
CSRC = $(STARTUPSRC) \
$(KERNSRC) \
$(PORTSRC) \
$(OSALSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
CSRC = $(ALLCSRC) \
$(TESTSRC) \
$(STREAMSSRC) \
$(SHELLSRC) \
main.c
# C++ sources here.
CPPSRC =
# List ASM source files here
ASMSRC =
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
ASMSRC = $(ALLASMSRC)
ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CHIBIOS)/os/license \
$(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
$(STREAMSINC) $(SHELLINC)
INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
#
# Project, sources and paths

View File

@ -153,7 +153,7 @@ ULIBS =
# Compiler settings
#
MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
MCU = e200zx -meabi -msdata=none -mregnames # HighTec
#MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
TRGT = ppc-vle-

View File

@ -47,7 +47,7 @@
* @note This values also defines the number of available priorities
* (0..CH_CFG_MAX_THREADS-1).
*/
#define CH_CFG_MAX_THREADS 4
#define CH_CFG_MAX_THREADS 5
/**
* @brief Auto starts threads when @p chSysInit() is invoked.

View File

@ -86,7 +86,6 @@ THD_FUNCTION(Thread3, arg) {
THD_TABLE_BEGIN
THD_TABLE_THREAD(0, "blinker1", waThread1, Thread1, NULL)
THD_TABLE_THREAD(1, "blinker2", waThread2, Thread2, NULL)
THD_TABLE_THREAD(2, "test_support", wa_test_support, test_support, (void *)&nil.threads[3])
THD_TABLE_THREAD(3, "tester", waThread3, Thread3, NULL)
THD_TABLE_END

View File

@ -47,7 +47,7 @@
* @note This values also defines the number of available priorities
* (0..CH_CFG_MAX_THREADS-1).
*/
#define CH_CFG_MAX_THREADS 3
#define CH_CFG_MAX_THREADS 4
/**
* @brief Auto starts threads when @p chSysInit() is invoked.

View File

@ -72,7 +72,6 @@ THD_FUNCTION(Thread2, arg) {
*/
THD_TABLE_BEGIN
THD_TABLE_THREAD(0, "blinker1", waThread1, Thread1, NULL)
THD_TABLE_THREAD(1, "test_support", wa_test_support, test_support, (void *)&nil.threads[2])
THD_TABLE_THREAD(2, "tester", waThread2, Thread2, NULL)
THD_TABLE_END

View File

@ -47,7 +47,7 @@
* @note This values also defines the number of available priorities
* (0..CH_CFG_MAX_THREADS-1).
*/
#define CH_CFG_MAX_THREADS 4
#define CH_CFG_MAX_THREADS 5
/**
* @brief Auto starts threads when @p chSysInit() is invoked.
@ -284,21 +284,21 @@
*
* @note The default is @p FALSE.
*/
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
/**
* @brief Debug option, parameters checks.
*
* @note The default is @p FALSE.
*/
#define CH_DBG_ENABLE_CHECKS TRUE
#define CH_DBG_ENABLE_CHECKS FALSE
/**
* @brief System assertions.
*
* @note The default is @p FALSE.
*/
#define CH_DBG_ENABLE_ASSERTS TRUE
#define CH_DBG_ENABLE_ASSERTS FALSE
/**
* @brief Stack check.

View File

@ -83,7 +83,6 @@ THD_FUNCTION(Thread3, arg) {
THD_TABLE_BEGIN
THD_TABLE_THREAD(0, "blinker1", waThread1, Thread1, NULL)
THD_TABLE_THREAD(1, "blinker2", waThread2, Thread2, NULL)
THD_TABLE_THREAD(2, "test_support", wa_test_support, test_support, (void *)&nil.threads[3])
THD_TABLE_THREAD(3, "tester", waThread3, Thread3, NULL)
THD_TABLE_END

View File

@ -34,10 +34,13 @@
/* Driver exported variables. */
/*===========================================================================*/
#if (PAL_USE_WAIT == TRUE) || (PAL_USE_CALLBACKS == TRUE) || \
defined(__DOXYGEN__)
/**
* @brief Event records (to be implemented).
*/
palevent_t _pal_events[1];
#endif
/*===========================================================================*/
/* Driver local variables and types. */

View File

@ -443,8 +443,10 @@ typedef struct {
#if !defined(__DOXYGEN__)
extern const PALConfig pal_default_config;
#if (PAL_USE_WAIT == TRUE) || (PAL_USE_CALLBACKS == TRUE)
extern palevent_t _pal_events[1];
#endif
#endif
#ifdef __cplusplus
extern "C" {

View File

@ -255,7 +255,7 @@ msg_t test_execute(BaseSequentialStream *stream, const testsuite_t *tsp) {
test_print("*** Test Board: ");
test_println(BOARD_NAME);
#endif
#if defined(__GNUC__) && !defined(TEST_SUPPRESS_SIZE_REPORT)
#if defined(TEST_SIZE_REPORT)
{
extern uint8_t __text_base, __text_end,
_data_start, _data_end,