From d9dc2ef35d08918444891be91a1dc4ae73a31940 Mon Sep 17 00:00:00 2001 From: levkovigor Date: Thu, 19 Aug 2021 19:58:25 +0300 Subject: [PATCH] Update PPPOS.c --- src/PPPOS.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/PPPOS.c b/src/PPPOS.c index 7ba037f..ed21a75 100644 --- a/src/PPPOS.c +++ b/src/PPPOS.c @@ -223,24 +223,6 @@ void PPPOS_stop(){ pppapi_close(ppp, 0); } -/*void gsmInit(int txPin, int rxPin, int baudrate, int uart_number){ - PPPOS_uart_num = uart_number; - gpio_set_direction(txPin, GPIO_MODE_OUTPUT); - gpio_set_direction(rxPin, GPIO_MODE_INPUT); - gpio_set_pull_mode(rxPin, GPIO_PULLUP_ONLY); - - uart_config_t uart_config = { - .baud_rate = baudrate, - .data_bits = UART_DATA_8_BITS, - .parity = UART_PARITY_DISABLE, - .stop_bits = UART_STOP_BITS_1, - .flow_ctrl = UART_HW_FLOWCTRL_DISABLE - }; - uart_param_config(PPPOS_uart_num, &uart_config) ; - uart_set_pin(PPPOS_uart_num, txPin, rxPin, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE); - uart_driver_install(PPPOS_uart_num, BUF_SIZE * 2, BUF_SIZE * 2, 0, NULL, 0); -}*/ - char* PPPOS_read(){ memset(PPPOS_out, 0, BUF_SIZE); int len = uart_read_bytes(PPPOS_uart_num, (uint8_t *)PPPOS_out, BUF_SIZE, 10 / portTICK_RATE_MS);