chore: import upstream snapshot with attribution
This commit is contained in:
+2
@@ -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));
|
||||
}
|
||||
}
|
||||
+2
@@ -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));
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "component1.c"
|
||||
INCLUDE_DIRS ".")
|
||||
+15
@@ -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!");
|
||||
}
|
||||
+12
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "component2.c"
|
||||
INCLUDE_DIRS ".")
|
||||
+15
@@ -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!");
|
||||
}
|
||||
+12
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "component3.c"
|
||||
INCLUDE_DIRS ".")
|
||||
+16
@@ -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!");
|
||||
}
|
||||
+12
@@ -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
|
||||
Reference in New Issue
Block a user