rearrange code

use generic ESP3D define instead of Marlin ones
move configuration define in esp3dconfiglib
move output to  espcom
remove ARDUINO_ARCH_ESP32 as not necessary
make constistent initialization messages
This commit is contained in:
Luc
2020-01-07 16:52:20 +01:00
parent 873067f00f
commit c806e32ce9
12 changed files with 301 additions and 265 deletions

36
src/espcom.cpp Normal file
View File

@@ -0,0 +1,36 @@
/*
espcom.cpp - esp3d communication serial/tcp/etc.. class
Copyright (c) 2014 Luc Lebosse. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "esp3dlibconfig.h"
#if defined(ESP3D_WIFISUPPORT)
#include MARLIN_PATH(HAL/HAL_ESP32/FlushableHardwareSerial.h)
#include MARLIN_PATH(HAL/HAL_ESP32/HAL.h)
#include "espcom.h"
void Esp3DCom::echo(const char * data)
{
SERIAL_ECHO_START();
SERIAL_ECHOLNPAIR("", data);
}
#endif //ESP3D_WIFISUPPORT