diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-27 15:13:46 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-27 15:13:46 +0000 |
commit | 48c311bd71544f4bfbf0820024fea2f13b974089 (patch) | |
tree | d440785b62abbd14be90ae87982854694727289f /openpicc/application/ssc_picc.c | |
parent | 6549d8861a943b7c341a03901127d84f1fa41131 (diff) |
Print relevant SSC registers
Set correct tc_cdiv for sending (FIXME: need to reset before receiving)
git-svn-id: https://svn.openpcd.org:2342/trunk@356 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc_picc.c')
-rw-r--r-- | openpicc/application/ssc_picc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c index df0f3f9..de2121d 100644 --- a/openpicc/application/ssc_picc.c +++ b/openpicc/application/ssc_picc.c @@ -184,8 +184,8 @@ void ssc_tx_start(ssc_dma_tx_buffer_t *buf) start_cond = AT91C_SSC_START_RISE_RF; sync_len = 0; ssc->SSC_RC0R = 0; - data_len = 16; - num_data = buf->len/2; + data_len = 32; + num_data = buf->len/(data_len/8); /* FIXME This is broken for more than 64 bytes */ ssc->SSC_TFMR = ((data_len-1) & 0x1f) | (((num_data-1) & 0x0f) << 8) | |