From abfa1661623d92fae4aa32e6b966d559c3d0e8be Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Fri, 7 Aug 2020 15:58:17 +0100 Subject: cli: Remove dependencies on UART implementation With the introduction of the I/O framework component, the CLI can now refer to a standard output configured by the firmware for sending and receiving UART data. This patch therefore moves any CLI-specific UART platform interfaces to the I/O component with the standard input and output streams. Change-Id: Iac55f592b438a603193da568e16eaf39fca115cf Signed-off-by: Chris Kay --- debugger/include/cli_platform.h | 46 ----------------------------------------- 1 file changed, 46 deletions(-) (limited to 'debugger/include') diff --git a/debugger/include/cli_platform.h b/debugger/include/cli_platform.h index f9ae03f7..2b983eba 100644 --- a/debugger/include/cli_platform.h +++ b/debugger/include/cli_platform.h @@ -64,15 +64,6 @@ void cli_platform_delay_ms(uint32_t ms); /* CLI Platform-Specific UART Functions */ /*****************************************************************************/ -/* - * cli_platform_uart_init - * Description - * Initializes the necessary hardware to send and receive characters. - * Return - * cli_ret_et: success if it works, something else if it fails. - */ -uint32_t cli_platform_uart_init(void); - /* * cli_platform_uid_notify * Description @@ -83,41 +74,4 @@ uint32_t cli_platform_uart_init(void); */ uint32_t cli_platform_uid_notify(void); -/* - * cli_platform_uart_get - * Description - * Receives a single character from the UART. Must support blocking and - * non-blocking receive operations. - * Parameters - * char *c - * Pointer to a char in which to place the received character. - * bool block - * If true, this function must not return until a character is - * received or the UART generates an error. If false, this function - * returns immediately regardless of whether or not a character was - * received. - * Return - * cli_ret_et: success if a character is read with no errors, error_empty - * if block==true and no characters are available, or some other error - * from the UART. - */ -uint32_t cli_platform_uart_get(char *c, bool block); - -/* - * cli_platform_uart_put - * Description - * Sends a single character on the UART. This function is blocking. - * Parameters - * char *c - * Pointer to character to send. - * bool block - * If true, this function must not return until a character is - * output or the UART generates an error. If false, this function - * returns immediately regardless of whether or not a character was - * output. - * Return - * cli_ret_et: success if it works, some other error if it doesn't. - */ -uint32_t cli_platform_uart_put(const char *c, bool block); - #endif /* _CLI_PLATFORM_H_ */ -- cgit v1.2.3