]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Modifications and changes for testing index
authorppisa <ppisa@pikron.com>
Thu, 7 Sep 2006 19:38:33 +0000 (21:38 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 16 Nov 2010 10:10:37 +0000 (11:10 +0100)
darcs-hash:20060907193833-d4e17-2cffb1871dc2272ec2bf38cade5f76d0a8245bd1.gz

arch/m68k/generic/drivers/periph/tpu_func.h
arch/m68k/generic/drivers/tpu_nitc.c

index 20462cc635f7810c3bc6ab28e51180bb739a9267..646832cbcfbae7653e3c20ecfaf74164258b1e99 100644 (file)
@@ -38,8 +38,9 @@ int tpu_qom_init(int chan, int prio, int init_val, int time_base,
 #define NITC_FINAL_TRANS_TIME     4
 #define NITC_LAST_TRANS_TIME      5
 
-#define NITC_CHCTRL_RISING_EDGE   0x07
-#define NITC_CHCTRL_FALLING_EDGE  0x0b
+#define NITC_CHCTRL_FIXED         0x03
+#define NITC_CHCTRL_RISING_EDGE   0x04
+#define NITC_CHCTRL_FALLING_EDGE  0x08
 #define NITC_CHCTRL_CAPT_TCR1     0x00
 #define NITC_CHCTRL_CAPT_TCR2     0x40
 
index 4e09797d19d87edaed140f0f76e91e980aa0a677..d17b215cffa3187c67330e1e3a2f49516bb8996a 100644 (file)
@@ -27,7 +27,7 @@ int tpu_nitc_init(int chan, int prio, int edges, int tcr_source,
   tpu_set_ier(chan,0);         /* disable MCU interrupt  */
   tpu_set_cfsr(chan,0xA);      /* NITC - New input transition counter */
 
-  control=3;
+  control=NITC_CHCTRL_FIXED;
   if(edges&NITC_CHCTRL_RISING_EDGE)  control|=NITC_CHCTRL_RISING_EDGE;
   if(edges&NITC_CHCTRL_FALLING_EDGE) control|=NITC_CHCTRL_FALLING_EDGE;
   if(tcr_source){