Browse Source

remove uneccesary serial setup

ugv_io
Alex Mikhalev 6 years ago
parent
commit
c4ef044fcd
  1. 16
      main/ugv_main.c
  2. 15
      uas-ugv.code-workspace

16
main/ugv_main.c

@ -51,20 +51,6 @@ QueueHandle_t lora_packet_isr_queue; @@ -51,20 +51,6 @@ QueueHandle_t lora_packet_isr_queue;
struct Packet packet;
void setup_serial(void) {
const uart_port_t uart_num = UART_NUM_2;
uart_config_t uart_config = {
.baud_rate = 115200,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_CTS_RTS,
.rx_flow_ctrl_thresh = 122,
};
// Configure UART parameters
ESP_ERROR_CHECK(uart_param_config(uart_num, &uart_config));
}
void setup_oled(void) {
u8g2_esp32_hal_t u8g2_hal_config = {
.scl = 15,
@ -80,8 +66,6 @@ void setup_oled(void) { @@ -80,8 +66,6 @@ void setup_oled(void) {
}
void setup(void) {
setup_serial();
ESP_LOGI(TAG, "setup");
setup_oled();

15
uas-ugv.code-workspace

@ -15,7 +15,20 @@ @@ -15,7 +15,20 @@
"Dockerfile.*": "dockerfile",
"esp_spi_flash.h": "c",
"sx127x_driver.h": "c",
"task.h": "c"
"task.h": "c",
"rtc.h": "c",
"sntp.h": "c",
"future": "c",
"optional": "c",
"esp_log.h": "c",
"string.h": "c",
"stdio.h": "c",
"sdkconfig.h": "c",
"freertos.h": "c",
"u8g2_esp32_hal.h": "c",
"stddef.h": "c",
"gpio.h": "c",
"gpio_reg.h": "c"
}
},
"extensions": {

Loading…
Cancel
Save