summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/uart.c
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2014-07-21 12:47:57 -0400
committerblmorris <bryan.morrissey@gmail.com>2014-07-21 12:47:57 -0400
commit4038f513ea0a6be75ecbc4d8ab2bbe2349524bca (patch)
tree2aace8a3551d5c397ec539865bbb2f6cdbc8d900 /stmhal/uart.c
parent0f4ee2e44a1e47258a8b07fb25e28286d131390c (diff)
parent951ed9d02ffc826c68ee3af26c3530477e7e6156 (diff)
downloadmicropython-4038f513ea0a6be75ecbc4d8ab2bbe2349524bca.tar.gz
micropython-4038f513ea0a6be75ecbc4d8ab2bbe2349524bca.zip
Merge https://github.com/micropython/micropython
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r--stmhal/uart.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c
index 9436c2938b..0418e8f3d0 100644
--- a/stmhal/uart.c
+++ b/stmhal/uart.c
@@ -65,8 +65,6 @@ struct _pyb_uart_obj_t {
UART_HandleTypeDef uart;
};
-pyb_uart_obj_t *pyb_uart_global_debug = NULL;
-
// assumes Init parameters have been set up correctly
bool uart_init2(pyb_uart_obj_t *uart_obj) {
USART_TypeDef *UARTx = NULL;
@@ -219,10 +217,6 @@ void uart_tx_char(pyb_uart_obj_t *uart_obj, int c) {
HAL_UART_Transmit(&uart_obj->uart, &ch, 1, 100000);
}
-void uart_tx_str(pyb_uart_obj_t *uart_obj, const char *str) {
- HAL_UART_Transmit(&uart_obj->uart, (uint8_t*)str, strlen(str), 100000);
-}
-
void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len) {
HAL_UART_Transmit(&uart_obj->uart, (uint8_t*)str, len, 100000);
}