summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-23 20:30:49 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-23 20:30:49 +0000
commitc089b6086dccb2dce69ffc99d5e08c0d74eb9807 (patch)
tree37a27ae6b058907516f49003d4e3493accb7b5bd
parentae585a40d827abcca2d8fb8d50ec52d6db1b43d2 (diff)
explicitly disable lots of PICC side code
git-svn-id: https://svn.openpcd.org:2342/trunk@129 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/firmware/src/ssc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openpcd/firmware/src/ssc.c b/openpcd/firmware/src/ssc.c
index 1a4de70..0cd20cc 100644
--- a/openpcd/firmware/src/ssc.c
+++ b/openpcd/firmware/src/ssc.c
@@ -57,6 +57,7 @@ static void ssc_rx_mode_set(enum ssc_mode ssc_mode)
AT91C_SSC_CP0 | AT91C_SSC_CP1);
switch (ssc_mode) {
+#ifdef CONFIG_PICCSIM
case SSC_MODE_14443A_SHORT:
start_cond = AT91C_SSC_START_0;
sync_len = ISO14443A_SOF_LEN;
@@ -75,6 +76,9 @@ static void ssc_rx_mode_set(enum ssc_mode ssc_mode)
/* start sampling at first falling data edge */
//start_cond =
break;
+#endif /* CONFIG_PICCSIM */
+ default:
+ return;
}
ssc->SSC_RFMR = (data_len-1) & 0x1f |
(((num_data-1) & 0x0f) << 8) |
@@ -103,6 +107,7 @@ static void ssc_tx_mode_set(enum ssc_mode ssc_mode)
AT91C_SSC_TXBUFE | AT91C_SSC_TXSYN;
switch (ssc_mode) {
+#ifdef CONFIG_PICCSIM
case SSC_MODE_14443A_SHORT:
start_cond = AT91C_SSC_START_RISE_RF;
sync_len = ISO14443A_SOF_LEN;
@@ -116,6 +121,7 @@ static void ssc_tx_mode_set(enum ssc_mode ssc_mode)
data_len = 1;
num_data = 1; /* FIXME */
break;
+#endif /* CONFIG_PICCSIM */
}
ssc->SSC_TFMR = (data_len-1) & 0x1f |
(((num_data-1) & 0x0f) << 8) |
@@ -224,6 +230,7 @@ static void ssc_irq(void)
DEBUGP("RX OVERRUN ");
switch (ssc_state.mode) {
+#ifdef CONFIG_PICCSIM
case SSC_MODE_14443A_SHORT:
if (ssc_sr & AT91C_SSC_RXSYN)
DEBUGP("RXSYN ");
@@ -267,6 +274,7 @@ static void ssc_irq(void)
AT91C_SSC_OVRUN);
}
break;
+#endif /* CONFIG_PICCSIM */
}
}
personal git repositories of Harald Welte. Your mileage may vary