Commit 981e6739 authored by Maciej Lipinski's avatar Maciej Lipinski

Update documentation

correction calling of irq-demo command
add one more exmaple to irq-demo
parent 766d7726
......@@ -1499,7 +1499,7 @@ interrupts are by default generated each time a pulse is transmitted or received
>:$ sudo wr-dio-cmd /dev/fmc-dio-1:0 stamp 0
## Enable interrupts in channel 0
>:$ sudo wr-dio-cmd /dev/fmc-dio-1:0 mask_irq 1 Y
>:$ sudo wr-dio-cmd /dev/fmc-dio-1:0 mask_irq 0 Y
## Observe that timestamps are available on ch0 again
>:$ sudo wr-dio-cmd /dev/fmc-dio-1:0 stamp 0
......@@ -1513,7 +1513,7 @@ you should observe interrupts coming from `spec-1:0-gpio-irq`.
The [FMCDIO] project includes an interrupt demo software that illustrates
operation of the interrupt channel. It can be found in `fmc-dio/sw/`.
This demo software disables the interrupts of all the physical channels except
This demo software disables the interrupts of all the physical channels
but not the one dedicated to interrupts. By default, it configures generation of
a interrupt every 100 millisecond. The tool displays the total number of
interrupts and the number of interrupts per second, as well as some statistics
......@@ -1532,10 +1532,13 @@ of this time difference is displayed by the software.
>:$ make
## Generate one interrupt each 100 ms
>:$ sudo irq-demo -f /dev/fmc-dio-1:0
>:$ sudo ./irq-demo -f /dev/fmc-dio-1:0
## Generate one interrupt each 10 ms
>:$ sudo irq-demo -f /dev/fmc-dio-1:0 -p 10000000
>:$ sudo ./irq-demo -f /dev/fmc-dio-1:0 -p 10000000
## Generate one interrupt each 10 ms using MONOTONIC time instead of REALTIME (default)
>:$ sudo ./irq-demo -f /dev/fmc-dio-1:0 -p 10000000 -c MONOTONIC
~~~~~~~~
> ***Note:*** See more information in the [FMCDIO] manual in `fmc-dio/doc/irq-demo`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment