diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-21 00:30:19 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-21 00:30:19 +0000 |
commit | 5cc0ed498f99d3b23c6f1b87a9a2fdcbb05dd1a9 (patch) | |
tree | e0f681d5a7fc06f192abdac3961ab39e08f98592 /openpicc/application/tc_cdiv_sync.c | |
parent | ac77f6b5c53c4f2afb97564d1d281c5fdc429409 (diff) |
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
Diffstat (limited to 'openpicc/application/tc_cdiv_sync.c')
-rw-r--r-- | openpicc/application/tc_cdiv_sync.c | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } |