National Instruments PCI-232/4 Instrukcja Użytkownika Strona 17

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 19
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 16
© National Instruments Corporation 17 Using PCI Serial with Linux
3. Add the following segment to the end of the file (not necessary for
Debian distribution):
if [ -f /etc/rc.d/rc.serial ]; then
sh /etc/rc.d/rc.serial
fi
Sample /etc/rc.d/rc.serial File
#
# /etc/rc.d/rc.serial
# Initializes the serial ports on your system
#
# Distributed with setserial version 2.14
#
# Standard flags you want your serial devices to have
# Examples: SAK, pgrp_lockout, session_lockout
#
STD_FLAGS="session_lockout"
SETSERIAL=/bin/setserial
echo -n "Configuring serial ports...."
# Do wild interrupt detection
#
${SETSERIAL} -W /dev/cua0
###############################################################
#
# AUTOMATIC CONFIGURATION
#
###############################################################
# Do AUTOMATIC_IRQ probing
#
AUTO_IRQ=auto_irq
# These are the standard COM1 through COM4 devices
#
#
${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
###############################################################
#
# MANUAL CONFIGURATION
#
###############################################################
Przeglądanie stron 16
1 2 ... 12 13 14 15 16 17 18 19

Komentarze do niniejszej Instrukcji

Brak uwag