From 37a2c6defecc552ed7c757d933c341ca6907f56a Mon Sep 17 00:00:00 2001 From: hadaq Date: Mon, 9 Nov 2009 15:04:35 +0000 Subject: [PATCH] trbnet.c --- libtrbnet/port.c | 3 --- libtrbnet/trbnet.c | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libtrbnet/port.c b/libtrbnet/port.c index 2e8d30f..4c38fb2 100644 --- a/libtrbnet/port.c +++ b/libtrbnet/port.c @@ -89,9 +89,6 @@ int port_init_ports() void port_close_ports() { - *(GPIOB_OE_OFFSET) = 0x0; - *(GPIOC_OE_OFFSET) = 0x0; - GPIO_PTR = NULL; GPIOA_OUT_OFFSET = NULL; GPIOA_IN_OFFSET = NULL; diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index a2dee75..61299b1 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -1,4 +1,4 @@ -const char trbnet_version[] = "$Revision: 2.51 $"; +const char trbnet_version[] = "$Revision: 2.52 $"; #include #include @@ -966,6 +966,9 @@ int init_ports() } } + /* Reset Ports */ + com_reset(); + return 0; } -- 2.43.0