summaryrefslogtreecommitdiff
path: root/openpicc/config
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/config')
-rw-r--r--openpicc/config/board.c14
-rw-r--r--openpicc/config/board.h8
2 files changed, 19 insertions, 3 deletions
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 )
personal git repositories of Harald Welte. Your mileage may vary