Add missing files for hello world

This commit is contained in:
2022-01-29 23:39:56 +01:00
parent e311b5168e
commit fe1904cc51
11 changed files with 1815 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/build
/build_*
/CMakeLists.txt.user*
/config.cmake
/sdkconfig
/sdkconfig.old*
/.ccache
+6
View File
@@ -10,9 +10,15 @@
[submodule "components/cpputils"]
path = components/cpputils
url = ../../0xFEEDC0DE64/cpputils.git
[submodule "components/cxx-ring-buffer"]
path = components/cxx-ring-buffer
url = ../../0xFEEDC0DE64/cxx-ring-buffer.git
[submodule "components/date"]
path = components/date
url = ../../0xFEEDC0DE64/date.git
[submodule "components/espasynchttpreq"]
path = components/espasynchttpreq
url = ../../0xFEEDC0DE64/espasynchttpreq.git
[submodule "components/espasyncota"]
path = components/espasyncota
url = ../../0xFEEDC0DE64/espasyncota.git
+8
View File
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.16.3)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(DmxNode)
+10
View File
@@ -0,0 +1,10 @@
FIRMWARE_ROOT="$(dirname "$BASH_SOURCE")"
if [[ ! -f "${FIRMWARE_ROOT}/esp-idf/export.sh" ]]
then
echo "esp-idf is missing, please check out all needed submodules!"
echo "git submodule update --init --recursive"
return
fi
. ${FIRMWARE_ROOT}/esp-idf/export.sh
+33
View File
@@ -0,0 +1,33 @@
set(headers
)
set(sources
main.cpp
)
set(dependencies
freertos nvs_flash esp_http_server esp_https_ota mdns app_update esp_system esp_websocket_client driver
arduino-esp32 ArduinoJson cpputils cxx-ring-buffer date espasynchttpreq espasyncota espchrono espcpputils
espconfiglib esphttpdutils espwifistack expected fmt
)
idf_component_register(
SRCS
${headers}
${sources}
INCLUDE_DIRS
.
REQUIRES
${dependencies}
)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-fdiagnostics-color=always
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
)
+10
View File
@@ -0,0 +1,10 @@
#include <esp_log.h>
namespace {
constexpr const char * const TAG = "MAIN";
} // namespace
extern "C" void app_main()
{
ESP_LOGI(TAG, "hello world");
}
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
if [[ -z "$IDF_PATH" ]]
then
source export.sh --skip-source-check
fi
qtcreator "DmxFirmware" 2>&1 >/dev/null &
+13
View File
@@ -0,0 +1,13 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x10000, 0x40000,
#nvsFac, data, nvs, 0x50000, 0x40000,
phy_init, data, phy, 0x90000, 0x1000,
otadata, data, ota, 0x91000, 0x2000,
# PADDING FOR APP ALIGN 0x93000, 0xD000,
#factory, app, factory, 0xA0000, 0x100000,
app_0, app, ota_0, 0x1A0000, 0x400000,
app_1, app, ota_1, 0x5A0000, 0x400000,
nvs_key, data, nvs_keys, 0x9A0000, 0x1000, encrypted
coredump, data, coredump, 0x9A1000, 0x10000, encrypted
keys, 0x40, 0x01, 0x9B1000, 0x10000, encrypted
spiffs, data, spiffs, 0x9C1000, 0x400000,
1 # Name, Type, SubType, Offset, Size, Flags
2 nvs, data, nvs, 0x10000, 0x40000,
3 #nvsFac, data, nvs, 0x50000, 0x40000,
4 phy_init, data, phy, 0x90000, 0x1000,
5 otadata, data, ota, 0x91000, 0x2000,
6 # PADDING FOR APP ALIGN 0x93000, 0xD000,
7 #factory, app, factory, 0xA0000, 0x100000,
8 app_0, app, ota_0, 0x1A0000, 0x400000,
9 app_1, app, ota_1, 0x5A0000, 0x400000,
10 nvs_key, data, nvs_keys, 0x9A0000, 0x1000, encrypted
11 coredump, data, coredump, 0x9A1000, 0x10000, encrypted
12 keys, 0x40, 0x01, 0x9B1000, 0x10000, encrypted
13 spiffs, data, spiffs, 0x9C1000, 0x400000,
+1718
View File
File diff suppressed because it is too large Load Diff