chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:04:25 +08:00
commit 548b49ebc0
20937 changed files with 5455372 additions and 0 deletions
@@ -0,0 +1,2 @@
idf_component_register(SRCS "app1_main.c"
PRIV_REQUIRES component1 component2)
@@ -0,0 +1,22 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "component1.h"
#include "component2.h"
void app_main(void)
{
component1_print_hello();
component2_print_hello();
while (1) {
vTaskDelay(pdMS_TO_TICKS(10000));
}
}
@@ -0,0 +1,2 @@
idf_component_register(SRCS "app2_main.c"
PRIV_REQUIRES component1 component2 component3)
@@ -0,0 +1,24 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "component1.h"
#include "component2.h"
#include "component3.h"
void app_main(void)
{
component1_print_hello();
component2_print_hello();
component3_print_hello();
while (1) {
vTaskDelay(pdMS_TO_TICKS(10000));
}
}
@@ -0,0 +1,2 @@
idf_component_register(SRCS "component1.c"
INCLUDE_DIRS ".")
@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "esp_log.h"
static const char *TAG = "component1";
void component1_print_hello(void)
{
ESP_LOGI(TAG, "Hello from component1!");
}
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef COMPONENT1_H
#define COMPONENT1_H
void component1_print_hello(void);
#endif // COMPONENT1_H
@@ -0,0 +1,2 @@
idf_component_register(SRCS "component2.c"
INCLUDE_DIRS ".")
@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "esp_log.h"
static const char *TAG = "component2";
void component2_print_hello(void)
{
ESP_LOGI(TAG, "Hello from component2!");
}
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef COMPONENT2_H
#define COMPONENT2_H
void component2_print_hello(void);
#endif // COMPONENT2_H
@@ -0,0 +1,2 @@
idf_component_register(SRCS "component3.c"
INCLUDE_DIRS ".")
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "esp_log.h"
#include "sdkconfig.h"
static const char *TAG = "component3";
void component3_print_hello(void)
{
ESP_LOGI(TAG, "Hello from component3!");
}
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef COMPONENT3_H
#define COMPONENT3_H
void component3_print_hello(void);
#endif // COMPONENT3_H