Javier Almansa Sobrino | 412d361 | 2020-05-22 17:53:12 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Script to handle the arguments and initialise the expect session. |
| 7 | # |
| 8 | # This script is not standalone and should be sourced by a top expect script. |
| 9 | |
| 10 | source [file join [file dirname [info script]] utils.inc] |
| 11 | |
| 12 | # Store environment variables into local variables |
| 13 | set uart_port [get_param uart_port] |
| 14 | set remote_host [get_param remote_host] |
| 15 | set timeout [get_param timeout] |
| 16 | |
| 17 | # Open a telnet connection on the required UART host port |
| 18 | set telnet_pid [spawn telnet $remote_host $uart_port] |