chore: import local project into Gitea

This commit is contained in:
2026-05-20 10:04:49 -07:00
commit d97ddea405
2228 changed files with 8277 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
idf_component_register(SRCS "esp_hosted_fg.c"
INCLUDE_DIRS "."
PRIV_REQUIRES esp_wifi)

View File

@@ -0,0 +1,27 @@
#include "esp_hosted_fg.h"
#include <esp_log.h>
#include "esp_wifi.h"
#include "esp_event.h"
#include "lwip/netif.h"
static const char *TAG = "ESP_HOSTED_FG";
esp_err_t esp_hosted_fg_init(void) {
ESP_LOGI(TAG, "Initializing ESP-Hosted-FG component");
// This is a mock implementation.
// In a real scenario, this would initialize communication
// with the ESP32-C6.
return ESP_OK;
}
esp_err_t esp_hosted_fg_wifi_ap_start(void) {
ESP_LOGI(TAG, "Starting Wi-Fi AP using ESP-Hosted-FG");
// This is a mock implementation.
// A real implementation would configure and start the AP on the ESP32-C6.
// Since we can't control the C6, we'll just log and return success.
ESP_LOGW(TAG, "Mock AP start. No actual AP will be created.");
return ESP_OK;
}

View File

@@ -0,0 +1,17 @@
#ifndef ESP_HOSTED_FG_H
#define ESP_HOSTED_FG_H
#include <esp_err.h>
#ifdef __cplusplus
extern "C" {
#endif
esp_err_t esp_hosted_fg_init(void);
esp_err_t esp_hosted_fg_wifi_ap_start(void);
#ifdef __cplusplus
}
#endif
#endif // ESP_HOSTED_FG_H