git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1644 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-02-20 11:39:33 +00:00
parent ee9a1b480b
commit 0fc33d4753
19 changed files with 102 additions and 7 deletions

View File

@ -28,7 +28,7 @@
* Board identifier.
*/
#define BOARD_OLIMEX_STM32_P103
#define BOARD_NAME "Olimex STM33-P103"
#define BOARD_NAME "Olimex STM32-P103"
/*
* Board frequencies.

View File

@ -34,6 +34,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "AT91SAM7x"
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -31,6 +31,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "ATmega128"
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -34,6 +34,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "LPC214x"
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -35,6 +35,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "Linux"
#define SOCKET int
#define INVALID_SOCKET -1

View File

@ -33,6 +33,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "MSP430x16x"
#define MSP430_CLOCK_SOURCE_XT2CLK 0 /** @brief XT2CLK clock selector. */
#define MSP430_CLOCK_SOURCE_DCOCLK 1 /** @brief DCOCLK clock selector. */

View File

@ -34,6 +34,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "SPC563M64"
#define RFD_DIV2 0 /**< Divide VCO frequency by 2. */
#define RFD_DIV4 1 /**< Divide VCO frequency by 4. */
#define RFD_DIV8 2 /**< Divide VCO frequency by 8. */

View File

@ -44,6 +44,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "STM32"
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -34,6 +34,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME "Win32"
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -32,6 +32,11 @@
/* Driver constants. */
/*===========================================================================*/
/**
* @brief Platform name.
*/
#define PLATFORM_NAME ""
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/

View File

@ -40,6 +40,11 @@
*/
#define CH_ARCHITECTURE_NAME ""
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_ARCHITECTURE_VARIANT_NAME ""
/**
* @brief Base type for stack alignment.
* @details This type is used only for stack alignment reasons thus can be

View File

@ -43,7 +43,12 @@
/**
* Name of the implemented architecture.
*/
#define CH_ARCHITECTURE_NAME "ARM7TDMI"
#define CH_ARCHITECTURE_NAME "ARM"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "ARM7TDMI"
/**
* 32 bit stack alignment.

View File

@ -91,7 +91,12 @@
/**
* Name of the implemented architecture.
*/
#define CH_ARCHITECTURE_NAME "ARM Cortex-M3"
#define CH_ARCHITECTURE_NAME "ARM"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "Cortex-M3"
/**
* 32 bit stack alignment.

View File

@ -47,6 +47,11 @@
*/
#define CH_ARCHITECTURE_NAME "AVR"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "MegaAVR"
/**
* 8 bit stack alignment.
*/

View File

@ -47,6 +47,11 @@
*/
#define CH_ARCHITECTURE_NAME "MSP430"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "MSP430"
/**
* 16 bit stack alignment.
*/

View File

@ -47,7 +47,12 @@
/**
* @brief Name of the implemented architecture.
*/
#define CH_ARCHITECTURE_NAME "PPC E200Zx"
#define CH_ARCHITECTURE_NAME "PowerPC"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "e200zX"
/**
* @brief Base type for stack alignment.

View File

@ -33,7 +33,12 @@
/**
* Name of the implemented architecture.
*/
#define CH_ARCHITECTURE_NAME "x86 Simulator"
#define CH_ARCHITECTURE_NAME "Simulator"
/**
* @brief Name of the architecture variant (optional).
*/
#define CH_CORE_VARIANT_NAME "x86 (integer only)"
/**
* 16 bytes stack alignment.

View File

@ -65,6 +65,8 @@
- NEW: Added an experimental PowerPC port targeting the SPC563M64/MPC563x
ST/Freescale automotive SOCs. The port passed the whole test suite but it
will be developed further in next releases.
- NEW: Added core variant name macro in chcore.h and platform name in
hal_lld.h, the info are printed in the test report.
- NEW: Added BOARD_NAME macro to the various board.h files.
- NEW: Added a MemoryStream class under ./os/various.

View File

@ -18,6 +18,7 @@
*/
#include "ch.h"
#include "hal.h"
#include "test.h"
#include "testthd.h"
@ -264,11 +265,23 @@ msg_t TestThread(void *p) {
test_println("***");
test_print("*** Kernel: ");
test_println(CH_KERNEL_VERSION);
test_print("*** Architecture: ");
test_println(CH_ARCHITECTURE_NAME);
#ifdef __GNUC__
test_print("*** GCC Version: ");
test_println(__VERSION__);
#endif
test_print("*** Architecture: ");
test_println(CH_ARCHITECTURE_NAME);
#ifdef CH_CORE_VARIANT_NAME
test_print("*** Core Variant: ");
test_println(CH_CORE_VARIANT_NAME);
#endif
#ifdef PLATFORM_NAME
test_print("*** Platform: ");
test_println(PLATFORM_NAME);
#endif
#ifdef BOARD_NAME
test_print("*** Test Board: ");
test_println(BOARD_NAME);
#endif
test_println("");