changeset 2325:29ca0a2d4a0f

* src/ser_16x5x.c (serial_config_port): Add CYGPRI_IO_SERIAL_GENERIC_16X5X_PLF_INIT_HOOK in case devices need extra initialization.
author jlarmour
date Mon, 27 Nov 2006 13:59:50 +0000
parents daa709b6d819
children bd648d8929f6
files packages/devs/serial/generic/16x5x/current/ChangeLog packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/serial/generic/16x5x/current/ChangeLog
+++ b/packages/devs/serial/generic/16x5x/current/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-27  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* src/ser_16x5x.c (serial_config_port): Add
+	CYGPRI_IO_SERIAL_GENERIC_16X5X_PLF_INIT_HOOK
+        in case devices need extra initialization.
+
 2006-02-07  Daniel Néri  <daniel.neri@sigicom.se>
 
 	* cdl/ser_generic_16x5x.cdl
@@ -287,6 +293,7 @@ 1999-03-03  Gary Thomas  <gthomas@cygnus
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2006 eCosCentric Limited.
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
--- a/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
+++ b/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
@@ -10,6 +10,7 @@
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
 // Copyright (C) 2003 Gary Thomas
+// Copyright (C) 2006 eCosCentric Limited
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -328,6 +329,10 @@ serial_config_port(serial_channel *chan,
 #endif
     HAL_WRITE_UINT8(base+REG_ier, _ier);
 
+#ifdef CYGPRI_IO_SERIAL_GENERIC_16X5X_PLF_INIT_HOOK
+    CYGPRI_IO_SERIAL_GENERIC_16X5X_PLF_INIT_HOOK( ser_chan, new_config );
+#endif
+
     if (new_config != &chan->config) {
         chan->config = *new_config;
     }