From bfd0f811085f2c2de2e57d91820fbedd0f65a58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 30 Oct 2013 14:18:38 +0000 Subject: [PATCH] added comment about GPT0 usage --- BaS_gcc/sources/BaS.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BaS_gcc/sources/BaS.c b/BaS_gcc/sources/BaS.c index e732bf2..d4c8f9f 100644 --- a/BaS_gcc/sources/BaS.c +++ b/BaS_gcc/sources/BaS.c @@ -191,6 +191,10 @@ void enable_coldfire_interrupts() *FPGA_INTR_CONTRL = 0L; /* disable all interrupts */ MCF_EPORT_EPPAR = 0xaaa8; /* all interrupts on falling edge */ + /* + * TIN0 on the Coldfire is connected to the FPGA. TIN0 triggers every write + * access to 0xff8201 (vbasehi), i.e. everytime the video base address is written + */ MCF_GPT0_GMS = MCF_GPT_GMS_ICT(1) | /* timer 0 on, video change capture on rising edge */ MCF_GPT_GMS_IEN | MCF_GPT_GMS_TMS(1);