Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial restructure to support multiple target architectures #1675

Merged
merged 22 commits into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
baa4f00
Initial restructure to support multiple platforms
mikee47 Apr 25, 2019
5d7ad1d
Makefile fixes and remove `apptest` directory
mikee47 Apr 27, 2019
cd9919a
Use `Arch` directory instead of `Platform`
mikee47 Apr 27, 2019
f4f9b61
Add makefile rule to run stack trace and update instructions
mikee47 Apr 28, 2019
6c58abb
Move `Services/libb64` into `Components`
mikee47 Apr 28, 2019
1149ba8
Move `Services/WebHelpers` into `SmingCore/Network`
mikee47 Apr 28, 2019
e120909
Rename `SmingCore` to `Core`
mikee47 Apr 28, 2019
acf29f3
Add help documenation to makefiles
mikee47 Apr 29, 2019
78b419c
WebHelpers now subject to coding style
mikee47 Apr 29, 2019
a98ba2e
Add `make help` and `make list-config` to travis/appveyor, update cod…
mikee47 Apr 29, 2019
7a1d8c1
Update `Doxyfile`
mikee47 Apr 29, 2019
3e68e58
Fix esptool2 submodule dependency
mikee47 Apr 29, 2019
100c6c9
Add individual .submodule dependencies for user libraries, make them …
mikee47 Apr 30, 2019
85a5ea7
Add optional `TRACE` variable for `decode-tracktrace` target
mikee47 Apr 30, 2019
bc3367e
Add `SmingCore/SmingCore.h` legacy file with warnings and link to Wik…
mikee47 Apr 30, 2019
e849638
In `decode-stacktrace.py`, use `sys.stdin.readline()` instead of `raw…
mikee47 Apr 30, 2019
b207eed
Remove sorting from `PrintHelp` make function to improve compatibilit…
mikee47 Apr 30, 2019
a8e25f6
Replace `#include` guards with `#pragma once`
mikee47 Apr 30, 2019
9fb2b9a
Minor change to `building.md`
mikee47 Apr 30, 2019
4498378
Fix coding style
mikee47 Apr 30, 2019
f0ad288
Fix line endings by running everything through dos2unix
mikee47 Apr 30, 2019
c929c93
Merge SmingCore warning #pragmas
mikee47 Apr 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
110 changes: 58 additions & 52 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,94 +1,100 @@
[submodule "Sming/third-party/rboot"]
path = Sming/third-party/rboot
url = https://github.com/raburton/rboot.git
ignore = dirty
[submodule "Sming.wiki"]
path = docs/wiki
url = https://github.com/SmingHub/Sming.wiki.git
ignore = dirty
[submodule "Sming/third-party/pwm"]
path = Sming/third-party/pwm
[submodule "spiffs"]
path = Sming/Components/spiffs
url = https://github.com/pellepl/spiffs.git
ignore = dirty
[submodule "http-parser"]
path = Sming/Components/http-parser
url = https://github.com/nodejs/http-parser.git
ignore = dirty
[submodule "ws_parser"]
path = Sming/Components/ws_parser
url = https://github.com/charliesome/ws_parser.git
ignore = dirty
[submodule "mqtt-codec"]
path = Sming/Components/mqtt-codec
url = https://github.com/slaff/mqtt-codec.git
ignore = dirty
[submodule "libyuarel"]
path = Sming/Components/libyuarel
url = https://github.com/jacketizer/libyuarel.git
ignore = dirty

[submodule "ESP8266.rboot"]
path = Sming/Arch/Esp8266/Components/rboot/rboot
url = https://github.com/raburton/rboot.git
ignore = dirty
[submodule "ESP8266.new-pwm"]
path = Sming/Arch/Esp8266/Components/pwm/new-pwm
url = https://github.com/StefanBruens/ESP8266_new_pwm.git
ignore = dirty
[submodule "Sming/third-party/axtls-8266"]
path = Sming/third-party/axtls-8266
ignore = dirty
[submodule "ESP8266.axtls-8266"]
path = Sming/Arch/Esp8266/Components/axtls-8266/axtls-8266
url = https://github.com/igrr/axtls-8266.git
ignore = dirty
[submodule "Sming/third-party/spiffs"]
path = Sming/third-party/spiffs
url = https://github.com/pellepl/spiffs.git
[submodule "Sming/third-party/umm_malloc"]
path = Sming/third-party/umm_malloc
ignore = dirty
[submodule "ESP8266.umm_malloc"]
path = Sming/Arch/Esp8266/Components/custom_heap/umm_malloc
url = https://github.com/rhempel/umm_malloc.git
ignore = dirty
[submodule "Sming/third-party/esp-open-lwip"]
path = Sming/third-party/esp-open-lwip
[submodule "ESP8266.esp-open-lwip"]
path = Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip
url = https://github.com/pfalcon/esp-open-lwip.git
ignore = dirty
[submodule "Sming/third-party/http-parser"]
path = Sming/third-party/http-parser
url = https://github.com/nodejs/http-parser.git
[submodule "ESP8266.lwip2"]
path = Sming/Arch/Esp8266/Components/lwip2/lwip2
url = https://github.com/d-a-v/esp82xx-nonos-linklayer.git
ignore = dirty
[submodule "Sming/third-party/ws_parser"]
path = Sming/third-party/ws_parser
url = https://github.com/charliesome/ws_parser.git

[submodule "ESP8266.Sdk"]
path = Sming/Arch/Esp8266/Components/Sdk/ESP8266_NONOS_SDK
url = https://github.com/espressif/ESP8266_NONOS_SDK.git
ignore = dirty
[submodule "Sming/Libraries/Adafruit_ST7735"]
[submodule "ESP8266.esptool2"]
path = Sming/Arch/Esp8266/Tools/esptool2
url = https://github.com/raburton/esptool2.git
ignore = dirty

[submodule "Libraries.Adafruit_ST7735"]
path = Sming/Libraries/Adafruit_ST7735
url = https://github.com/adafruit/Adafruit-ST7735-Library.git
ignore = dirty
[submodule "Sming/Libraries/Adafruit_SSD1306"]
[submodule "Libraries.Adafruit_SSD1306"]
path = Sming/Libraries/Adafruit_SSD1306
url = https://github.com/adafruit/Adafruit_SSD1306.git
ignore = dirty
[submodule "Sming/Libraries/Adafruit_BME280_Library"]
[submodule "Libraries.Adafruit_BME280_Library"]
path = Sming/Libraries/Adafruit_BME280_Library
url = https://github.com/adafruit/Adafruit_BME280_Library.git
ignore = dirty
[submodule "Sming/Libraries/Adafruit_Sensor"]
[submodule "Libraries.Adafruit_Sensor"]
path = Sming/Libraries/Adafruit_Sensor
url = https://github.com/adafruit/Adafruit_Sensor
ignore = dirty
[submodule "Sming/third-party/lwip2"]
path = Sming/third-party/lwip2
url = https://github.com/d-a-v/esp82xx-nonos-linklayer.git
ignore = dirty
[submodule "Sming/third-party/ESP8266_NONOS_SDK"]
path = Sming/third-party/ESP8266_NONOS_SDK
url = https://github.com/espressif/ESP8266_NONOS_SDK.git
ignore = dirty
[submodule "tools/esptool2"]
path = tools/esptool2
url = https://github.com/raburton/esptool2.git
ignore = dirty
[submodule "Sming/Libraries/RingBufCPP"]
[submodule "Libraries.RingBufCPP"]
path = Sming/Libraries/RingBufCPP
url = https://github.com/wizard97/Embedded_RingBuf_CPP.git
ignore = dirty
[submodule "Sming/Libraries/IR"]
[submodule "Libraries.IR"]
path = Sming/Libraries/IR
url = https://github.com/markszabo/IRremoteESP8266.git
ignore = dirty
[submodule "Sming/Libraries/DHTesp"]
[submodule "Libraries.DHTesp"]
path = Sming/Libraries/DHTesp
url = https://github.com/beegee-tokyo/DHTesp.git
ignore = dirty
[submodule "Sming/third-party/ITEADLIB_Arduino_Nextion"]
[submodule "Libraries.ITEADLIB_Arduino_Nextion"]
path = Sming/Libraries/ITEADLIB_Arduino_Nextion
url = https://github.com/itead/ITEADLIB_Arduino_Nextion.git
ignore = dirty
[submodule "Sming/Libraries/DFRobotDFPlayerMini"]
[submodule "Libraries.DFRobotDFPlayerMini"]
path = Sming/Libraries/DFRobotDFPlayerMini
url = https://github.com/DFRobot/DFRobotDFPlayerMini.git
ignore = dirty
[submodule "Sming/Libraries/TM1637"]
[submodule "Libraries.TM1637"]
path = Sming/Libraries/TM1637
url = https://github.com/avishorp/TM1637.git
ignore = dirty
[submodule "Sming/third-party/mqtt-codec"]
path = Sming/third-party/mqtt-codec
url = https://github.com/slaff/mqtt-codec.git
ignore = dirty
[submodule "Sming/third-party/libyuarel"]
path = Sming/third-party/libyuarel
url = https://github.com/jacketizer/libyuarel.git

2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ script:
- cd $SMING_HOME
- if [ "$SDK_VERSION" == "2.0.0" ]; then ../.travis/tools/clang/format-pr.sh; fi
- cd $SMING_HOME
- make help
- make list-config
- make STRICT=1
- make samples
- make clean samples-clean
Expand Down
2 changes: 1 addition & 1 deletion .travis/tools/clang/format-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $CLANG_FORMAT --version
cd $SMING_HOME/..

# Get list of modified files
files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^[^.]*[.]\(c\|cpp\|h\)$' | grep -e Sming/SmingCore -e samples || true)"
files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^[^.]*[.]\(c\|cpp\|h\)$' | grep -e Sming/Core -e Sming/Platform -e Sming/Arch/.+/Core -e Sming/Arch/.+/Platform -e samples || true)"

for f in $files_to_lint; do

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions Sming/Arch/Esp8266/Components/Sdk/ESP8266_NONOS_SDK
Submodule ESP8266_NONOS_SDK added at e4434a
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "Clock.h"
#include "Digital.h"

#include "espinc/uart.h"
#include "driver/uart.h"
slaff marked this conversation as resolved.
Show resolved Hide resolved
#include "espinc/peri.h"

#include "Data/Buffer/SerialBuffer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#include <user_config.h>
#include "gdb_hooks.h"
#include "gdb/gdb_hooks.h"

extern void __real_system_restart_local();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../include/user_config.h"
#include "../include/esp_cplusplus.h"
#include <user_config.h>
#include "include/esp_cplusplus.h"
#include <stdlib.h>

////////////////////////////////////////////////////////////////////////
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include <user_config.h>
#include "Platform/System.h"
#include "espinc/uart.h"
#include "gdb_hooks.h"
#include <driver/uart.h>
#include <gdb/gdb_hooks.h>

extern void init();

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
*
****/

#include <gdb_hooks.h>
#include <gdb_syscall.h>
#include "gdb/gdbstub.h"
#include "gdb/gdbuart.h"
#include "gdb/gdbstub-entry.h"
#include "gdb/exceptions.h"
#include <espinc/uart.h>
#include <gdb/gdb_hooks.h>
#include <gdb/gdb_syscall.h>
#include "gdbstub/gdbstub.h"
#include "gdbstub/gdbuart.h"
#include "gdbstub/gdbstub-entry.h"
#include "gdbstub/exceptions.h"
#include <driver/uart.h>

extern "C" {

Expand Down Expand Up @@ -49,7 +49,7 @@ void debug_print_stack(uint32_t start, uint32_t end)
m_puts(_F("\r\n"
"Stack dump:\r\n"));
PSTR_ARRAY(instructions, "To decode the stack dump call from command line:\r\n"
" python $SMING_HOME/../tools/decode-stacktrace.py out/build/app.out\r\n"
" make decode-stacktrace\r\n"
"and copy & paste the text enclosed in '===='.\r\n");
PSTR_ARRAY(separatorLine, "\n================================================================\r\n");
m_puts(instructions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* License: ESPRESSIF MIT License
*******************************************************************************/

#include "gdb/gdbstub-internal.h"
#include "gdbstub/gdbstub-internal.h"

#include <xtensa/config/specreg.h>
#include <xtensa/config/core-isa.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "gdbstub.h"
#include "gdbstub-entry.h"
#include "gdb_hooks.h"
#include <gdb/gdb_hooks.h>
#include "GdbPacket.h"
#include "exceptions.h"
#include "gdb/registers.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define _GDB_GDBSTUB_H_

#include "gdbstub-internal.h"
#include <gdb_hooks.h>
#include <gdb/gdb_hooks.h>
#include "BitManipulations.h"

// GDB_xx macro versions required to ensure no flash access if requested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "gdbsyscall.h"
#include "GdbPacket.h"
#include <gdb_syscall.h>
#include <gdb/gdb_syscall.h>
#include <sys/errno.h>
#include "Platform/System.h"

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "gdbuart.h"
#include "GdbPacket.h"
#include "espinc/uart.h"
#include "driver/uart.h"
#include "Data/Buffer/SerialBuffer.h"
#include "Platform/System.h"
#include "HardwareSerial.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "Digital.h"
#include "WiringFrameworkIncludes.h"
#include "espinc/peri.h"
#include "ESP8266EX.h"

const unsigned int A0 = 17; // Single ESP8266EX analog input pin (TOUT) 10 bit, 0..1v

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "Clock.h"
#include "WiringFrameworkIncludes.h"
#include "ESP8266EX.h"

#include "HardwarePWM.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "HardwareSerial.h"
#include <cstdarg>
#include "System.h"
#include "Platform/System.h"
#include "m_printf.h"

#if ENABLE_CMD_EXECUTOR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "Interrupts.h"
#include "Digital.h"
#include "WiringFrameworkIncludes.h"
#include "System.h"
#include "Platform/System.h"

static InterruptCallback gpioInterruptsList[16] = {0};
static InterruptDelegate delegateFunctionList[16];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define _SMING_CORE_NETWORK_RBOOT_HTTP_UPDATE_H_

#include "Data/Stream/DataSourceStream.h"
#include "HttpClient.h"
#include "Network/HttpClient.h"
#include <rboot-api.h>

#define NO_ROM_SWITCH 0xff
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "twi.h"
#include "Digital.h"

#include <espinc/peri.h>

unsigned char twi_dcount = 18;
static unsigned char twi_sda, twi_scl;
static uint32_t twi_clockStretchLimit;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
****/

#include "AccessPoint.h"
#include "Platform/AccessPoint.h"
#include "Interrupts.h"
#include "Data/HexString.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
****/

#include "RTC.h"
#include "Platform/RTC.h"

RtcClass::RtcClass()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
****/

#include "Station.h"
#include "Platform/Station.h"
#include "Interrupts.h"
#include "Data/HexString.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
****/

#include "System.h"
#include "Platform/System.h"
#include "SimpleTimer.h"

SystemClass System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

#include "WDT.h"
#include "Platform/WDT.h"

WDTClass WDT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Author: shurik
*/

#include <WifiEvents.h>
#include "Platform/WifiEvents.h"

WifiEventsClass WifiEvents;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
****/

#include "WifiSniffer.h"
#include "Platform/WifiSniffer.h"
#include "esp_wifi_sniffer.h"

WifiSnifferCallback WifiSniffer::snifferCallback;
Expand Down
Loading