summaryrefslogtreecommitdiff
path: root/openpicc/application/main.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 04:45:15 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 04:45:15 +0000
commit616746c2e01a0425a9fc62d24153d88079f0daac (patch)
tree8eb82b0af16890ab4bd249d7091f655a976dbfc9 /openpicc/application/main.c
parent5cc0ed498f99d3b23c6f1b87a9a2fdcbb05dd1a9 (diff)
Commit status quo: Start adding iso 14443 layer 3a code
Currently working on fiq for pio data change to reset tc0 via swtrg git-svn-id: https://svn.openpcd.org:2342/trunk@336 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/main.c')
-rw-r--r--openpicc/application/main.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/openpicc/application/main.c b/openpicc/application/main.c
index e13c793..0756d10 100644
--- a/openpicc/application/main.c
+++ b/openpicc/application/main.c
@@ -47,6 +47,7 @@
#include "tc_cdiv_sync.h"
#include "tc_fdt.h"
#include "usb_print.h"
+#include "iso14443_layer3a.h"
/**********************************************************************/
static inline void prvSetupHardware (void)
@@ -149,23 +150,10 @@ int main (void)
da_init();
adc_init();
- pll_init();
-
- tc_cdiv_init();
- tc_cdiv_set_divider(16);
- tc_fdt_init();
-#if 0
- ssc_tx_init();
-#else
- AT91F_PIO_CfgInput(AT91C_BASE_PIOA, OPENPICC_MOD_PWM);
- AT91F_PIO_CfgPeriph(AT91C_BASE_PIOA, OPENPICC_MOD_SSC |
- OPENPICC_SSC_DATA | OPENPICC_SSC_DATA |
- AT91C_PIO_PA15, 0);
-#endif
- ssc_rx_init();
-
- xTaskCreate (vMainTestSSCRXConsumer, (signed portCHAR *) "SSC_CONSUMER", TASK_USB_STACK,
- NULL, TASK_USB_PRIORITY, NULL);
+ /*xTaskCreate (vMainTestSSCRXConsumer, (signed portCHAR *) "SSC_CONSUMER", TASK_USB_STACK,
+ NULL, TASK_USB_PRIORITY, NULL);*/
+ xTaskCreate (iso14443_layer3a_state_machine, (signed portCHAR *) "ISO14443A-3", TASK_ISO_STACK,
+ NULL, TASK_ISO_PRIORITY, NULL);
xTaskCreate (vUSBCDCTask, (signed portCHAR *) "USB", TASK_USB_STACK,
NULL, TASK_USB_PRIORITY, NULL);
personal git repositories of Harald Welte. Your mileage may vary