From 062f55ca3ea77ebcace83aab4772c9cd3f28ec34 Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 23 Nov 2007 10:30:50 +0000 Subject: Commit status quo (pending cleanup of the debug and experimental code that I added during the last week) Change freertos code to not mask FIQ, this finally makes the FIQ working (with approx 700ns +/- 100ns latency; yeah!) and therefore reception starts working Change to two times oversampling (keep four times oversampling code ifdef'd, extract all the magical values to a header file) because at four times oversampling every other sample is very close to a possible data edge and therefore not reliable git-svn-id: https://svn.openpcd.org:2342/trunk@347 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openpicc/application/main.c') diff --git a/openpicc/application/main.c b/openpicc/application/main.c index b739f34..37cc24a 100644 --- a/openpicc/application/main.c +++ b/openpicc/application/main.c @@ -88,7 +88,7 @@ void vApplicationIdleHook(void) void main_help_print_buffer(ssc_dma_buffer_t *buffer, int *pktcount) { - u_int32_t *tmp = (u_int32_t*)buffer->data; + u_int16_t *tmp = (u_int16_t*)buffer->data; int i, dumped = 0; unsigned int j; for(i = buffer->len / sizeof(*tmp); i >= 0 ; i--) { @@ -163,7 +163,10 @@ int main (void) vCmdInit(); - //vLedSetGreen(1); + //vLedSetGreen(1); + + /* Remap RAM to addr 0 */ + AT91C_BASE_MC->MC_RCR = AT91C_MC_RCB; vTaskStartScheduler (); -- cgit v1.2.3