summaryrefslogtreecommitdiff
path: root/openpicc/application
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/application')
-rw-r--r--openpicc/application/iso14443_layer3a.c4
-rw-r--r--openpicc/application/ssc_picc.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/openpicc/application/iso14443_layer3a.c b/openpicc/application/iso14443_layer3a.c
index 06857f2..1433b33 100644
--- a/openpicc/application/iso14443_layer3a.c
+++ b/openpicc/application/iso14443_layer3a.c
@@ -206,6 +206,10 @@ void iso14443_layer3a_state_machine (void *pvParameters)
DumpUIntToUSB((unsigned int)ssc_tx_buffer.source);
DumpStringToUSB(" ");
DumpUIntToUSB((unsigned int)&ATQA_FRAME);
+ DumpStringToUSB(" ");
+ DumpUIntToUSB(ssc_tx_buffer.len);
+ DumpStringToUSB(" ");
+ DumpBufferToUSB((char*)ssc_tx_buffer.data, ssc_tx_buffer.len);
DumpStringToUSB("\n\r");
state=INITIAL_STATE;
if(INITIAL_STATE == IDLE)
diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c
index 7e02ec6..1332905 100644
--- a/openpicc/application/ssc_picc.c
+++ b/openpicc/application/ssc_picc.c
@@ -289,6 +289,7 @@ void ssc_tx_start(ssc_dma_tx_buffer_t *buf)
u_int32_t start_cond;
/* disable Tx */
+ AT91F_PDC_DisableTx(tx_pdc);
AT91F_SSC_DisableTx(AT91C_BASE_SSC);
/* disable all Tx related interrupt sources */
@@ -315,6 +316,7 @@ void ssc_tx_start(ssc_dma_tx_buffer_t *buf)
AT91F_SSC_EnableIt(ssc, AT91C_SSC_ENDTX);
/* Enable DMA */
AT91F_PDC_EnableTx(tx_pdc);
+ AT91F_PDC_SetTx(tx_pdc, buf->data, num_data);
/* Start Transmission */
#ifndef USE_SSC_TX_TF_WORKAROUND
AT91F_SSC_EnableTx(AT91C_BASE_SSC);
personal git repositories of Harald Welte. Your mileage may vary