Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  serial-sh7720.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
#include <linux/serial_sci.h>
#include <linux/serial_core.h>
#include <linux/io.h>
#include <cpu/serial.h>
#include <cpu/gpio.h>

static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
{
 unsigned short data;

 if (cflag & CRTSCTS) {
  /* enable RTS/CTS */
  if (port->mapbase == 0xa4430000) { /* SCIF0 */
   /* Clear PTCR bit 9-2; enable all scif pins but sck */
   data = __raw_readw(PORT_PTCR);
   __raw_writew((data & 0xfc03), PORT_PTCR);
  } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
   /* Clear PVCR bit 9-2 */
   data = __raw_readw(PORT_PVCR);
   __raw_writew((data & 0xfc03), PORT_PVCR);
  }
 } else {
  if (port->mapbase == 0xa4430000) { /* SCIF0 */
   /* Clear PTCR bit 5-2; enable only tx and rx  */
   data = __raw_readw(PORT_PTCR);
   __raw_writew((data & 0xffc3), PORT_PTCR);
  } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
   /* Clear PVCR bit 5-2 */
   data = __raw_readw(PORT_PVCR);
   __raw_writew((data & 0xffc3), PORT_PVCR);
  }
 }
}

struct plat_sci_port_ops sh7720_sci_port_ops = {
 .init_pins = sh7720_sci_init_pins,
};

Messung V0.5
C=74 H=100 G=87

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge