]> rtime.felk.cvut.cz Git - fpga/virtex2/uart.git/blobdiff - software/main.c
Peripheral connected to the quadcount module and an incremental encoder. Interrupt...
[fpga/virtex2/uart.git] / software / main.c
index 15b2a056c19c4b4ec8f849089e3e41d24537f64c..bf98951974bc10d20af9a79ed132be1a8d24b067 100644 (file)
@@ -23,6 +23,14 @@ inline uint32_t qcount() {
   return result;
 }
 
+/**
+Handling of QuadCounter IRQ
+*/
+interrupt(QCNT_VECTOR) qcount_isr() {
+  printf("[QCount = 0x%08lX]\n", qcount() >> 2);
+}
+
+
 /**
 Delay function.
 */