Add missing files for hello world
This commit is contained in:
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/build
|
||||
/build_*
|
||||
/CMakeLists.txt.user*
|
||||
/config.cmake
|
||||
/sdkconfig
|
||||
/sdkconfig.old*
|
||||
/.ccache
|
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -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
CMakeLists.txt
Normal file
8
CMakeLists.txt
Normal 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)
|
1
components/cxx-ring-buffer
Submodule
1
components/cxx-ring-buffer
Submodule
Submodule components/cxx-ring-buffer added at c204c20888
1
components/espasynchttpreq
Submodule
1
components/espasynchttpreq
Submodule
Submodule components/espasynchttpreq added at 650f5ed465
10
export.sh
Normal file
10
export.sh
Normal 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
main/CMakeLists.txt
Normal file
33
main/CMakeLists.txt
Normal 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
main/main.cpp
Normal file
10
main/main.cpp
Normal 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");
|
||||
}
|
8
open_ide.sh
Executable file
8
open_ide.sh
Executable 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
partitions_16M_ota.csv
Normal file
13
partitions_16M_ota.csv
Normal 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,
|
|
Reference in New Issue
Block a user