From 4b03b310ffda11b017ce5166012a7139b09eee90 Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 29 Feb 2008 08:13:12 +0000 Subject: Add information about new hardware patchlevel git-svn-id: https://svn.openpcd.org:2342/trunk@433 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/config/board.c | 14 ++++++++++++-- openpicc/config/board.h | 8 +++++++- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'openpicc') diff --git a/openpicc/config/board.c b/openpicc/config/board.c index aaa1163..129cc37 100644 --- a/openpicc/config/board.c +++ b/openpicc/config/board.c @@ -23,17 +23,27 @@ const struct openpicc_hardware OPENPICC_HARDWARE[] = { [OPENPICC_v0_4] = {OPENPICC_v0_4, "OpenPICC v0.4", // release name - {0, 0,}, // features: data_gating, clock_gating + {0, 0, 0,}, // features: data_gating, clock_gating, clock_switching AT91C_PIO_PA4, // PLL_LOCK -1, // CLOCK_GATE -1, // DATA_GATE + -1, // CLOCK_SWITCH }, [OPENPICC_v0_4_p1] = {OPENPICC_v0_4_p1, "OpenPICC v0.4 patchlevel 1", - {1, 1,}, + {1, 1, 0,}, AT91C_PIO_PA5, AT91C_PIO_PA4, AT91C_PIO_PA31, + -1, + }, + [OPENPICC_v0_4_p2] = {OPENPICC_v0_4_p2, + "OpenPICC v0.4 patchlevel 2", + {1, 1, 1,}, + AT91C_PIO_PA5, + AT91C_PIO_PA4, + AT91C_PIO_PA31, + AT91C_PIO_PA30, }, }; diff --git a/openpicc/config/board.h b/openpicc/config/board.h index 428acd4..ac6bf81 100644 --- a/openpicc/config/board.h +++ b/openpicc/config/board.h @@ -59,6 +59,10 @@ enum openpicc_release { * + PLL_LOCK relocated from PA4 to PA5 * + Copy of FRAME routed to PA4 * + Connection between R18 and 3V3 removed, instead R18 is now connected to PA31*/ + OPENPICC_v0_4_p2, /* Enhancement of v0.1p1, Add: + * + CARRIER can be switched from PLL output to original carrier + * using PA30 + */ }; struct openpicc_hardware { enum openpicc_release release; @@ -66,12 +70,14 @@ struct openpicc_hardware { struct { int data_gating:1; int clock_gating:1; + int clock_switching:1; } features; int PLL_LOCK; int CLOCK_GATE; int DATA_GATE; + int CLOCK_SWITCH; }; extern const struct openpicc_hardware OPENPICC_HARDWARE[]; @@ -121,7 +127,7 @@ extern const struct openpicc_hardware *OPENPICC; #define TASK_BEACON_PRIORITY ( tskIDLE_PRIORITY ) #define TASK_BEACON_STACK ( 512 ) -#define TASK_CMD_PRIORITY ( tskIDLE_PRIORITY + 1 ) +#define TASK_CMD_PRIORITY ( tskIDLE_PRIORITY + 2 ) #define TASK_CMD_STACK ( 512 ) #define TASK_USB_PRIORITY ( tskIDLE_PRIORITY + 2 ) -- cgit v1.2.3