From 5cc0ed498f99d3b23c6f1b87a9a2fdcbb05dd1a9 Mon Sep 17 00:00:00 2001 From: henryk Date: Wed, 21 Nov 2007 00:30:19 +0000 Subject: Checking in status quo: Can currently receive and print frames in ssc continuous mode (with new short and incomplete ssc irq handler: FIXME, either switch back to original handler (maybe fixing it if necessary) or handle the missing cases in the new handler). Lots of debug statements still in there git-svn-id: https://svn.openpcd.org:2342/trunk@335 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/tc_cdiv_sync.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openpicc/application/tc_cdiv_sync.c') diff --git a/openpicc/application/tc_cdiv_sync.c b/openpicc/application/tc_cdiv_sync.c index 45c65b6..422fe44 100644 --- a/openpicc/application/tc_cdiv_sync.c +++ b/openpicc/application/tc_cdiv_sync.c @@ -24,7 +24,7 @@ static void pio_data_change(u_int32_t pio) *AT91C_TC0_CV); } else DEBUGPCR(""); - vLedSetGreen(0); + //vLedSetGreen(0); } void tc_cdiv_sync_reset(void) @@ -34,7 +34,7 @@ void tc_cdiv_sync_reset(void) (void)tmp; volatile int i; DEBUGPCRF("CDIV_SYNC_FLOP"); - vLedSetGreen(1); + //vLedSetGreen(1); /* reset the hardware flipflop */ AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, @@ -63,6 +63,7 @@ void tc_cdiv_sync_enable(void) extern void (*fiq_handler)(void); void tc_cdiv_sync_init(void) { + pio_irq_init_once(); DEBUGPCRF("initializing"); enabled = 0; @@ -72,8 +73,7 @@ void tc_cdiv_sync_init(void) AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, OPENPICC_PIO_SSC_DATA_CONTROL); pio_irq_register(OPENPICC_PIO_FRAME, &pio_data_change); - AT91F_AIC_EnableIt(AT91C_ID_PIOA); - vLedSetGreen(0); + //vLedSetGreen(0); tc_cdiv_sync_disable(); } -- cgit v1.2.3