add ESP-IDF project with Spider Runtime for ESP32
This commit is contained in:
21
esp32/idf_project/main/main.cpp
Normal file
21
esp32/idf_project/main/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include "esp_log.h"
|
||||
#include <spider/SpiderRuntime.hpp>
|
||||
#include <spider/runtime/Runtime.hpp>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
static const char* TAG = "Spider";
|
||||
|
||||
extern "C" void app_main(void) {
|
||||
ESP_LOGI(TAG, "Spider Runtime starting...");
|
||||
|
||||
spider::Runtime runtime(32 * 1024);
|
||||
|
||||
ESP_LOGI(TAG, "Spider Runtime initialized!");
|
||||
ESP_LOGI(TAG, "RAM size: 32KB");
|
||||
|
||||
while(1) {
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user