remove uneccesary serial setup
This commit is contained in:
parent
589a819e4f
commit
c4ef044fcd
@ -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) {
|
||||
}
|
||||
|
||||
void setup(void) {
|
||||
setup_serial();
|
||||
|
||||
ESP_LOGI(TAG, "setup");
|
||||
|
||||
setup_oled();
|
||||
|
@ -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…
x
Reference in New Issue
Block a user