Hardware, Installation and Configuration
2-17
Driver Configuration
1
RCIM boards have many features that can be configured for application use.
Configuration is performed by echoing a series of comma-separated tokens to the
configuration file associated with the RCIM board of interest. Each token specifies how a
single feature configuration option is to be changed; feature tokens not specified remain
unchanged.
For example, the following command changes
eti1
edge-triggered interrupt to trigger on
a falling edge:
echo
"
eti1/f
"
> /proc/driver/rcim:0/config
Quotes around the tokens are always recommended and must be used to surround a
configuration request that contains a vertical bar, as in the following command example:
echo
"
rtc0|di1
"
> /proc/driver/rcim:0/config
After execution of the above command, the RCIM’s
rtc0
real-time clock will be routed
into the RCIM's
di1
distributed interrupt.
Here is a more complex example for an RCIM slave system:
echo
"
host/server1.ccur.com, eti1/rising, di3/high, rtc3|di6
"
>
/proc/driver/rcim:0/config
This command performs all of the following actions:
•
sets the master RCIM hostname to
server1.ccur.com
•
sets the
eti1
edge-triggered interrupt to trigger on a rising edge
•
sets the
di3
distributed interrupt to trigger on a high value
•
routes the
rtc3
real-time clock into the
di6
distributed interrupt.
Note that all RCIM configuration options fall into one of the following catagories:
•
Set the manner in which various interrupts will be triggered: rising or
falling edge, high or low level.
•
Create associations between internally generated interrupt signals, output
lines and distributed-interrupt lines.
•
Set the name of the system in an RCIM chain that has the master RCIM.
•
Decide whether the tick and POSIX clock is to be driven by the local
RCIM oscillator or by the master RCIM oscillator, for RCIMs that are in an
RCIM chain.
Configuration changes require write permissions to the RCIM’s config file (e.g. root
access) and should only be made when the RCIM is not otherwise in use.
Configuration modifications are not automatically retained between system reboots. To
make them persistant, create an
/etc/init.d
script to issue the desired RCIM
configuration commands during each system boot.
Содержание RCIM
Страница 1: ...Real Time Clock and Interrupt Module RCIM User s Guide 0898007 1000 March 2021...
Страница 10: ...RCIM User s Guide 1 4...
Страница 32: ...RCIM User s Guide 2 22...
Страница 80: ...RCIM User s Guide A 28...
Страница 102: ...RCIM User s Guide C 2...