summaryrefslogtreecommitdiff
path: root/openpicc/application/tc_cdiv_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/application/tc_cdiv_sync.c')
-rw-r--r--openpicc/application/tc_cdiv_sync.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openpicc/application/tc_cdiv_sync.c b/openpicc/application/tc_cdiv_sync.c
index 0486f90..3405ca2 100644
--- a/openpicc/application/tc_cdiv_sync.c
+++ b/openpicc/application/tc_cdiv_sync.c
@@ -20,7 +20,8 @@ static void pio_data_change(u_int32_t pio)
* edge */
if (*AT91C_PIOA_PDSR & OPENPICC_PIO_FRAME) {
vLedSetGreen(1);
- *AT91C_TC0_CCR = AT91C_TC_SWTRG;
+ /* This code is now replaced by hard-coded assembler code in os/boot/boot.s my_fiq_handler */
+ /* *AT91C_TC0_CCR = AT91C_TC_SWTRG;*/
DEBUGPCR("CDIV_SYNC_FLIP SWTRG CV=0x%08x",
*AT91C_TC0_CV);
vLedSetGreen(0);
@@ -72,7 +73,9 @@ void tc_cdiv_sync_init(void)
AT91F_PIOA_CfgPMC();
AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, OPENPICC_PIO_SSC_DATA_CONTROL);
- pio_irq_register(OPENPICC_PIO_FRAME, &pio_data_change);
+ /* This code is now replaced by hard-coded assembler code in os/boot/boot.s my_fiq_handler */
+ /*pio_irq_register(OPENPICC_PIO_FRAME, &pio_data_change);*/
+ (void)pio_data_change;
//vLedSetGreen(0);
tc_cdiv_sync_disable();
personal git repositories of Harald Welte. Your mileage may vary