78 lines
1.5 KiB
C
78 lines
1.5 KiB
C
#ifndef PUBLIC_H
|
|
#define PUBLIC_H
|
|
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "driver/usb_serial_jtag.h"
|
|
#include "sdkconfig.h"
|
|
#include "esp_log.h"
|
|
#include "esp_check.h"
|
|
#include "freertos/queue.h"
|
|
#include "driver/uart.h"
|
|
#include "freertos/event_groups.h"
|
|
#include "esp_system.h"
|
|
#include "esp_wifi.h"
|
|
#include "esp_event.h"
|
|
#include "nvs_flash.h"
|
|
|
|
#include "lwip/err.h"
|
|
#include "lwip/sockets.h"
|
|
#include "lwip/sys.h"
|
|
#include <lwip/netdb.h>
|
|
|
|
#include "esp32_port.h"
|
|
#include "esp_loader.h"
|
|
#include "flasher_common.h"
|
|
#include "driver/uart.h"
|
|
#include "driver/gpio.h"
|
|
|
|
#include "esp_timer.h"
|
|
#include "driver/gptimer.h"
|
|
#include "driver/timer.h"
|
|
|
|
#include "wifi_task.h"
|
|
#include "spiffs.h"
|
|
|
|
#include "esp_sleep.h"
|
|
|
|
#include "bsp_flash.h"
|
|
|
|
#include "esp_efuse.h"
|
|
#include "stream.h"
|
|
|
|
#define LV_EVENT_CUSTOM_UPDATE _LV_EVENT_LAST + 1
|
|
|
|
typedef struct Device_info_
|
|
{
|
|
uint8_t Device_SN[12];
|
|
uint8_t Device_MAC_WIFI[6];
|
|
uint8_t Device_MAC_BLE[6];
|
|
uint32_t flash_id;
|
|
spiffs_list_t directory[10];
|
|
}Device_info_t;
|
|
|
|
typedef struct
|
|
{
|
|
Device_info_t Device_info;
|
|
target_chip_t def_target_chip;
|
|
|
|
}Sys_config_t;
|
|
|
|
|
|
extern Device_info_t off_line_tool;
|
|
|
|
extern stream_data_t uart_interface_data;
|
|
|
|
extern esp_timer_handle_t SysTick_timer;
|
|
|
|
|
|
extern void usb_serial2Uart(void *pvParameters);
|
|
extern void Read_CMD_task(void *pvParameter);
|
|
extern void Flasher_tool_task(void *pvParameter);
|
|
extern void Gui_Task(void *pvParameter);
|
|
extern void usb_serial_task(void *pvParameters);
|
|
|
|
#endif |