diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 1b7ba8a..3c0410c 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -129,6 +129,14 @@ EthernetClient ethClient; #include "dmx.h" #endif +#define Q(x) #x +#define QUOTE(x) Q(x) + +#ifndef PIO_SRC_REV +#define PIO_SRC_REV_BRANCH v0.97 +#endif + + #include "item.h" #include "inputs.h" @@ -886,7 +894,9 @@ void postTransmission() void setup_main() { cmdInit(115200); - Serial.println(F("\nLazyhome.ru LightHub controller v0.97")); + Serial.print(F("\nLazyhome.ru LightHub controller ")); + Serial.println(F(QUOTE(PIO_SRC_REV))); + cmdAdd("help", _handleHelp); cmdAdd("save", _saveConfig); diff --git a/pio_run_error_log.txt b/pio_run_error_log.txt deleted file mode 100644 index 70bc953..0000000 --- a/pio_run_error_log.txt +++ /dev/null @@ -1,1423 +0,0 @@ -livello@lserver ~/PROG/lighthub $ rm -Rf .piolibdeps/ -livello@lserver ~/PROG/lighthub $ pio run -e megaatmega2560 - -[Wed Mar 14 13:46:03 2018] Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -LibraryManager: Installing Arduino-Temperature-Control-Library -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-cmz44U-package»… -remote: Counting objects: 337, done. -remote: Compressing objects: 100% (6/6), done. -remote: Total 337 (delta 1), reused 0 (delta 0), pack-reused 331 -Получение объектов: 100% (337/337), 151.23 KiB | 0 bytes/s, готово. -Определение изменений: 100% (174/174), готово. -Проверка соединения… готово. -HEAD сейчас на 1306c49 Update OneWire.cpp -LibraryManager: Installing DS2482_OneWire -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-sk9FKd-package»… -remote: Counting objects: 14, done. -remote: Compressing objects: 100% (10/10), done. -remote: Total 14 (delta 1), reused 7 (delta 0), pack-reused 0 -Распаковка объектов: 100% (14/14), готово. -Проверка соединения… готово. -LibraryManager: Installing DmxSimple -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-6FpiRF-package»… -remote: Counting objects: 15, done. -remote: Compressing objects: 100% (12/12), done. -remote: Total 15 (delta 0), reused 13 (delta 0), pack-reused 0 -Распаковка объектов: 100% (15/15), готово. -Проверка соединения… готово. -LibraryManager: Installing httpClient -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-sz4zO7-package»… -remote: Counting objects: 13, done. -remote: Compressing objects: 100% (11/11), done. -remote: Total 13 (delta 0), reused 9 (delta 0), pack-reused 0 -Распаковка объектов: 100% (13/13), готово. -Проверка соединения… готово. -LibraryManager: Installing aJson -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-vKbebH-package»… -remote: Counting objects: 20, done. -remote: Compressing objects: 100% (16/16), done. -remote: Total 20 (delta 0), reused 13 (delta 0), pack-reused 0 -Распаковка объектов: 100% (20/20), готово. -Проверка соединения… готово. -LibraryManager: Installing CmdArduino -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-SdLqob-package»… -remote: Counting objects: 17, done. -remote: Compressing objects: 100% (14/14), done. -remote: Total 17 (delta 2), reused 15 (delta 1), pack-reused 0 -Распаковка объектов: 100% (17/17), готово. -Проверка соединения… готово. -LibraryManager: Installing ModbusMaster -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-CTfc76-package»… -remote: Counting objects: 41, done. -remote: Compressing objects: 100% (35/35), done. -remote: Total 41 (delta 0), reused 18 (delta 0), pack-reused 0 -Распаковка объектов: 100% (41/41), готово. -Проверка соединения… готово. -LibraryManager: Installing DMXSerial -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-SUXywb-package»… -remote: Counting objects: 17, done. -remote: Compressing objects: 100% (14/14), done. -remote: Total 17 (delta 0), reused 9 (delta 0), pack-reused 0 -Распаковка объектов: 100% (17/17), готово. -Проверка соединения… готово. -LibraryManager: Installing Ethernet -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-vEEroA-package»… -remote: Counting objects: 48, done. -remote: Compressing objects: 100% (41/41), done. -remote: Total 48 (delta 4), reused 20 (delta 1), pack-reused 0 -Распаковка объектов: 100% (48/48), готово. -Проверка соединения… готово. -LibraryManager: Installing SPI -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-Kn75yj-package»… -remote: Counting objects: 12, done. -remote: Compressing objects: 100% (11/11), done. -remote: Total 12 (delta 0), reused 6 (delta 0), pack-reused 0 -Распаковка объектов: 100% (12/12), готово. -Проверка соединения… готово. -LibraryManager: Installing pubsubclient -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-JOtNYi-package»… -remote: Counting objects: 56, done. -remote: Compressing objects: 100% (48/48), done. -remote: Total 56 (delta 5), reused 26 (delta 1), pack-reused 0 -Распаковка объектов: 100% (56/56), готово. -Проверка соединения… готово. -LibraryManager: Installing Artnet -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-LExt22-package»… -remote: Counting objects: 37, done. -remote: Compressing objects: 100% (32/32), done. -remote: Total 37 (delta 8), reused 17 (delta 0), pack-reused 0 -Распаковка объектов: 100% (37/37), готово. -Проверка соединения… готово. -LibraryManager: Installing id=126 -Downloading [####################################] 100% -Unpacking [####################################] 100% -Verbose mode can be enabled via `-v, --verbose` option -PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) -SYSTEM: ATMEGA2560 16MHz 8KB RAM (248KB Flash) -Converting lighthub.ino -Library Dependency Finder -> http://bit.ly/configure-pio-ldf -LDF MODES: FINDER(chain) COMPATIBILITY(light) -Collected 37 compatible libraries -Scanning dependencies... -Dependency Graph -|-- #1306c49 -| |-- #3ef01fc -| | |-- v1.0 -| |-- v2.0.1 #4a429bf -|-- #3ef01fc -| |-- v1.0 -|-- v3.1 #62f0959 -|-- #007e22e -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -|-- #60e5d57 -| |-- v2.0 -|-- #c94cd3f -|-- v2.0.1 #4a429bf -|-- v1.3.0 #4db73b3 -|-- v1.1.2 #238e8fc -| |-- v1.0 #8d59205 -|-- v1.0 #8d59205 -|-- v2.6 #f029640 -|-- #3d39995 -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -| |-- v1.2.7 -| | |-- v1.0 #8d59205 -|-- v3.1.8 -| |-- v1.0 -| |-- v1.3.0 #4db73b3 -| |-- v3.1 #62f0959 -|-- v1.0 -|-- v2.0 -Compiling .pioenvs/megaatmega2560/src/dmx.cpp.o -Compiling .pioenvs/megaatmega2560/src/item.cpp.o -Compiling .pioenvs/megaatmega2560/src/lighthub.ino.cpp.o -lighthub/dmx.cpp: In function 'int itemCtrl2(char*, int, int, int, int)': -lighthub/dmx.cpp:91:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/dmx.cpp: In function 'void DMXput()': -lighthub/dmx.cpp:111:5: warning: unused variable 't' [-Wunused-variable] -int t; -^ -lighthub/dmx.cpp: In function 'void onDmxFrame(uint16_t, uint16_t, uint8_t, uint8_t*, IPAddress)': -lighthub/dmx.cpp:186:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -for (int i = 0 ; i < length && iprint('[') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:862:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(',') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:868:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(']') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp: In member function 'int aJsonStream::printObject(aJsonObject*)': -.piolibdeps/aJson/aJSON.cpp:960:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print('{') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:970:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(':') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:981:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(',') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:987:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print('}') == EOF) -^ -In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, -from lighthub/item.cpp:29: -lighthub/item.cpp: At top level: -.piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'crc16_update' defined but not used [-Wunused-function] -static uint16_t crc16_update(uint16_t crc, uint8_t a) -^ -Archiving .pioenvs/megaatmega2560/lib9dd/libaJson.a -Indexing .pioenvs/megaatmega2560/lib9dd/libaJson.a -Linking .pioenvs/megaatmega2560/firmware.elf -Building .pioenvs/megaatmega2560/firmware.hex -Calculating size .pioenvs/megaatmega2560/firmware.elf -AVR Memory Usage ----------------- -Device: atmega2560 - -Program: 56650 bytes (21.6% Full) -(.text + .data + .bootloader) - -Data: 2559 bytes (31.2% Full) -(.data + .bss + .noinit) - - -======================================================================================= [SUCCESS] Took 25.43 seconds ======================================================================================= - -================================================================================================= [SUMMARY] ================================================================================================= -Environment due [SKIP] -Environment megaatmega2560 [SUCCESS] -======================================================================================= [SUCCESS] Took 25.43 seconds ======================================================================================= -livello@lserver ~/PROG/lighthub $ pio run -e due -[Wed Mar 14 13:46:33 2018] Processing due (platform: atmelsam; board: due; framework: arduino) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -LibraryManager: Installing DueFlashStorage -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-T8wBjH-package»… -remote: Counting objects: 19, done. -remote: Compressing objects: 100% (16/16), done. -remote: Total 19 (delta 3), reused 15 (delta 3), pack-reused 0 -Распаковка объектов: 100% (19/19), готово. -Проверка соединения… готово. -LibraryManager: Installing DmxDue -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-nscx5F-package»… -remote: Counting objects: 7, done. -remote: Compressing objects: 100% (5/5), done. -remote: Total 7 (delta 0), reused 5 (delta 0), pack-reused 0 -Распаковка объектов: 100% (7/7), готово. -Проверка соединения… готово. -LibraryManager: Installing ArduinoHttpClient -git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-6QUOvA-package»… -remote: Counting objects: 45, done. -remote: Compressing objects: 100% (41/41), done. -remote: Total 45 (delta 9), reused 22 (delta 3), pack-reused 0 -Распаковка объектов: 100% (45/45), готово. -Проверка соединения… готово. -Verbose mode can be enabled via `-v, --verbose` option -PLATFORM: Atmel SAM > Arduino Due (Programming Port) -SYSTEM: AT91SAM3X8E 84MHz 32KB RAM (512KB Flash) -DEBUG: CURRENT(blackmagic) EXTERNAL(blackmagic, jlink) -Converting lighthub.ino -Library Dependency Finder -> http://bit.ly/configure-pio-ldf -LDF MODES: FINDER(chain) COMPATIBILITY(light) -Collected 19 compatible libraries -Scanning dependencies... -Dependency Graph -|-- v1.0.0 #a41b206 -|-- #1306c49 -| |-- #3ef01fc -| | |-- v1.0 -| |-- v2.0.1 #4a429bf -|-- #3ef01fc -| |-- v1.0 -|-- #bf7ffb2 -|-- #acde3dc -|-- #60e5d57 -| |-- v1.0.0 #a41b206 -|-- #c94cd3f -|-- v2.0.1 #4a429bf -|-- v1.1.2 #238e8fc -| |-- v1.0 #8d59205 -|-- v1.0 #8d59205 -|-- v2.6 #f029640 -|-- #3d39995 -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -|-- v3.1.8 -| |-- v3.1 #62f0959 -| |-- v1.3.0 #4db73b3 -|-- v3.1 #62f0959 -|-- v1.0 -|-- #007e22e -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -|-- v1.3.0 #4db73b3 -Compiling .pioenvs/due/src/lighthub.ino.cpp.o -Compiling .pioenvs/due/src/main.cpp.o -In file included from lighthub/main.cpp:71:0: -.piolibdeps/SPI/SPI.h:1028:8: error: 'SPIClass' does not name a type -extern SPIClass SPI; -^ -In file included from lighthub/main.cpp:132:0: -lighthub/item.h: In member function 'int Item::On()': -lighthub/item.h:85:33: warning: no return statement in function returning non-void [-Wreturn-type] -inline int On (){Ctrl(CMD_ON);}; -^ -lighthub/item.h: In member function 'int Item::Off()': -lighthub/item.h:86:34: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Off(){Ctrl(CMD_OFF);}; -^ -lighthub/item.h: In member function 'int Item::Toggle()': -lighthub/item.h:87:40: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Toggle(){Ctrl(CMD_TOGGLE);}; -^ -lighthub/main.cpp: In function 'void callback(char*, byte*, unsigned int)': -lighthub/main.cpp:198:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -for (int i=0;i Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) -SYSTEM: ATMEGA2560 16MHz 8KB RAM (248KB Flash) -Converting lighthub.ino -Library Dependency Finder -> http://bit.ly/configure-pio-ldf -LDF MODES: FINDER(chain) COMPATIBILITY(light) -Collected 40 compatible libraries -Scanning dependencies... -Dependency Graph -|-- #1306c49 -| |-- #3ef01fc -| | |-- v1.0 -| |-- v2.0.1 #4a429bf -|-- #3ef01fc -| |-- v1.0 -|-- v3.1 #62f0959 -|-- #007e22e -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -|-- #60e5d57 -| |-- v2.0 -| |-- v1.0.0 #a41b206 -|-- #c94cd3f -|-- v2.0.1 #4a429bf -|-- v1.3.0 #4db73b3 -|-- v1.1.2 #238e8fc -| |-- v1.0 #8d59205 -|-- v1.0 #8d59205 -|-- v2.6 #f029640 -|-- #3d39995 -| |-- v1.2.7 -| | |-- v1.0 #8d59205 -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 -|-- v3.1.8 -| |-- v1.3.0 #4db73b3 -| |-- v1.0 -| |-- v3.1 #62f0959 -|-- v1.0 -|-- v2.0 -|-- #bf7ffb2 -|-- #acde3dc -|-- v1.0.0 #a41b206 -Compiling .pioenvs/megaatmega2560/src/dmx.cpp.o -Compiling .pioenvs/megaatmega2560/src/item.cpp.o -Compiling .pioenvs/megaatmega2560/src/lighthub.ino.cpp.o -lighthub/dmx.cpp: In function 'int itemCtrl2(char*, int, int, int, int)': -lighthub/dmx.cpp:91:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/dmx.cpp: In function 'void DMXput()': -lighthub/dmx.cpp:111:5: warning: unused variable 't' [-Wunused-variable] -int t; -^ -lighthub/dmx.cpp: In function 'void onDmxFrame(uint16_t, uint16_t, uint8_t, uint8_t*, IPAddress)': -lighthub/dmx.cpp:186:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -for (int i = 0 ; i < length && i= (IFLASH1_ADDR + IFLASH1_SIZE)) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:57:56: error: 'IFLASH1_SIZE' was not declared in this scope -if ((uint32_t)FLASH_START+address >= (IFLASH1_ADDR + IFLASH1_SIZE)) { -^ -In file included from .piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:1:0: -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:62:18: note: in expansion of macro 'FLASH_START' -if (((uint32_t)FLASH_START+address & 3) != 0) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:68:36: note: in expansion of macro 'FLASH_START' -retCode = flash_unlock((uint32_t)FLASH_START+address, (uint32_t)FLASH_START+address + dataLength - 1, 0, 0); -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write_unlocked(uint32_t, byte)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:97:35: note: in expansion of macro 'FLASH_START' -retCode = flash_write((uint32_t)FLASH_START+address, &value, byteLength, 1); -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:94:9: warning: unused variable 'data' [-Wunused-variable] -byte *data; -^ -In file included from .piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:1:0: -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write_unlocked(uint32_t, byte*, uint32_t)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:111:17: note: in expansion of macro 'FLASH_START' -if ((uint32_t)FLASH_START+address < IFLASH1_ADDR) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:116:17: note: in expansion of macro 'FLASH_START' -if ((uint32_t)FLASH_START+address >= (IFLASH1_ADDR + IFLASH1_SIZE)) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:116:56: error: 'IFLASH1_SIZE' was not declared in this scope -if ((uint32_t)FLASH_START+address >= (IFLASH1_ADDR + IFLASH1_SIZE)) { -^ -In file included from .piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:1:0: -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:121:18: note: in expansion of macro 'FLASH_START' -if (((uint32_t)FLASH_START+address & 3) != 0) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.h:25:32: error: 'IFLASH1_ADDR' was not declared in this scope -#define FLASH_START ((byte *)IFLASH1_ADDR) -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:127:35: note: in expansion of macro 'FLASH_START' -retCode = flash_write((uint32_t)FLASH_START+address, data, dataLength, 1); -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'byte DueFlashStorage::read(uint32_t)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'byte* DueFlashStorage::readAddress(uint32_t)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: -.piolibdeps/DueFlashStorage/src/efc.h:116:19: error: 'Efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:24: error: 'p_efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:40: error: expected primary-expression before 'ul_access_mode' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:65: error: expected primary-expression before 'ul_fws' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:71: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:117:32: error: variable or field 'efc_enable_frdy_interrupt' declared void -void efc_enable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:117:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:117:37: error: 'p_efc' was not declared in this scope -void efc_enable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:118:33: error: variable or field 'efc_disable_frdy_interrupt' declared void -void efc_disable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:118:33: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:118:38: error: 'p_efc' was not declared in this scope -void efc_disable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:32: error: variable or field 'efc_set_flash_access_mode' declared void -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:119:37: error: 'p_efc' was not declared in this scope -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:53: error: expected primary-expression before 'ul_mode' -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:120:36: error: 'Efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:120:41: error: 'p_efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:25: error: variable or field 'efc_set_wait_state' declared void -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:25: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:121:30: error: 'p_efc' was not declared in this scope -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:46: error: expected primary-expression before 'ul_fws' -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:122:29: error: 'Efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:122:34: error: 'p_efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:30: error: 'Efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:35: error: 'p_efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:51: error: expected primary-expression before 'ul_command' -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:124:12: error: expected primary-expression before 'ul_argument' -uint32_t ul_argument); -^ -.piolibdeps/DueFlashStorage/src/efc.h:124:23: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t ul_argument); -^ -.piolibdeps/DueFlashStorage/src/efc.h:125:25: error: 'Efc' was not declared in this scope -uint32_t efc_get_status(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:125:30: error: 'p_efc' was not declared in this scope -uint32_t efc_get_status(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:126:25: error: 'Efc' was not declared in this scope -uint32_t efc_get_result(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:126:30: error: 'p_efc' was not declared in this scope -uint32_t efc_get_result(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:127:36: error: 'Efc' was not declared in this scope -uint32_t efc_perform_read_sequence(Efc *p_efc, -^ -.piolibdeps/DueFlashStorage/src/efc.h:127:41: error: 'p_efc' was not declared in this scope -uint32_t efc_perform_read_sequence(Efc *p_efc, -^ -.piolibdeps/DueFlashStorage/src/efc.h:128:12: error: expected primary-expression before 'ul_cmd_st' -uint32_t ul_cmd_st, uint32_t ul_cmd_sp, -^ -.piolibdeps/DueFlashStorage/src/efc.h:128:32: error: expected primary-expression before 'ul_cmd_sp' -uint32_t ul_cmd_st, uint32_t ul_cmd_sp, -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:12: error: expected primary-expression before '*' token -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:13: error: 'p_ul_buf' was not declared in this scope -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:32: error: expected primary-expression before 'ul_size' -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:39: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:84:27: error: variable or field 'efc_write_fmr' declared void -extern void efc_write_fmr(Efc *p_efc, uint32_t ul_fmr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:84:27: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:84:32: error: 'p_efc' was not declared in this scope -extern void efc_write_fmr(Efc *p_efc, uint32_t ul_fmr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:84:48: error: expected primary-expression before 'ul_fmr' -extern void efc_write_fmr(Efc *p_efc, uint32_t ul_fmr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:85:33: warning: 'efc_perform_fcr' initialized and declared 'extern' -extern uint32_t efc_perform_fcr(Efc *p_efc, uint32_t ul_fcr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:85:33: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:85:38: error: 'p_efc' was not declared in this scope -extern uint32_t efc_perform_fcr(Efc *p_efc, uint32_t ul_fcr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:85:54: error: expected primary-expression before 'ul_fcr' -extern uint32_t efc_perform_fcr(Efc *p_efc, uint32_t ul_fcr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:85:60: warning: expression list treated as compound expression in initializer [-fpermissive] -extern uint32_t efc_perform_fcr(Efc *p_efc, uint32_t ul_fcr); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:95:19: error: redefinition of 'uint32_t efc_init' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws) -^ -In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: -.piolibdeps/DueFlashStorage/src/efc.h:116:10: note: 'uint32_t efc_init' previously defined here -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:95:19: error: 'Efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:95:24: error: 'p_efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:95:40: error: expected primary-expression before 'ul_access_mode' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:95:65: error: expected primary-expression before 'ul_fws' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:106:32: error: variable or field 'efc_enable_frdy_interrupt' declared void -void efc_enable_frdy_interrupt(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:106:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:106:37: error: 'p_efc' was not declared in this scope -void efc_enable_frdy_interrupt(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:118:33: error: variable or field 'efc_disable_frdy_interrupt' declared void -void efc_disable_frdy_interrupt(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:118:33: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:118:38: error: 'p_efc' was not declared in this scope -void efc_disable_frdy_interrupt(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:131:32: error: variable or field 'efc_set_flash_access_mode' declared void -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:131:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:131:37: error: 'p_efc' was not declared in this scope -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:131:53: error: expected primary-expression before 'ul_mode' -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:145:36: error: redefinition of 'uint32_t efc_get_flash_access_mode' -uint32_t efc_get_flash_access_mode(Efc *p_efc) -^ -In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: -.piolibdeps/DueFlashStorage/src/efc.h:120:10: note: 'uint32_t efc_get_flash_access_mode' previously defined here -uint32_t efc_get_flash_access_mode(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:145:36: error: 'Efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:145:41: error: 'p_efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:156:25: error: variable or field 'efc_set_wait_state' declared void -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:156:25: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.cpp:156:30: error: 'p_efc' was not declared in this scope -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:156:46: error: expected primary-expression before 'ul_fws' -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:170:29: error: redefinition of 'uint32_t efc_get_wait_state' -uint32_t efc_get_wait_state(Efc *p_efc) -^ -In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: -.piolibdeps/DueFlashStorage/src/efc.h:122:10: note: 'uint32_t efc_get_wait_state' previously defined here -uint32_t efc_get_wait_state(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:170:29: error: 'Efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:170:34: error: 'p_efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:188:30: error: redefinition of 'uint32_t efc_perform_command' -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: -.piolibdeps/DueFlashStorage/src/efc.h:123:10: note: 'uint32_t efc_perform_command' previously defined here -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:188:30: error: 'Efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:188:35: error: 'p_efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:188:51: error: expected primary-expression before 'ul_command' -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:189:12: error: expected primary-expression before 'ul_argument' -uint32_t ul_argument) -^ -.piolibdeps/DueFlashStorage/src/efc.cpp:337:1: error: expected '}' at end of input -} -^ -*** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/DueFlashStorage.cpp.o] Error 1 -*** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/efc.cpp.o] Error 1 -In file included from .piolibdeps/DueFlashStorage/src/flash_efc.h:48:0, -from .piolibdeps/DueFlashStorage/src/flash_efc.cpp:46: -.piolibdeps/DueFlashStorage/src/efc.h:116:19: error: 'Efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:24: error: 'p_efc' was not declared in this scope -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:40: error: expected primary-expression before 'ul_access_mode' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:65: error: expected primary-expression before 'ul_fws' -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:116:71: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:117:32: error: variable or field 'efc_enable_frdy_interrupt' declared void -void efc_enable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:117:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:117:37: error: 'p_efc' was not declared in this scope -void efc_enable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:118:33: error: variable or field 'efc_disable_frdy_interrupt' declared void -void efc_disable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:118:33: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:118:38: error: 'p_efc' was not declared in this scope -void efc_disable_frdy_interrupt(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:32: error: variable or field 'efc_set_flash_access_mode' declared void -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:32: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:119:37: error: 'p_efc' was not declared in this scope -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:119:53: error: expected primary-expression before 'ul_mode' -void efc_set_flash_access_mode(Efc *p_efc, uint32_t ul_mode); -^ -.piolibdeps/DueFlashStorage/src/efc.h:120:36: error: 'Efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:120:41: error: 'p_efc' was not declared in this scope -uint32_t efc_get_flash_access_mode(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:25: error: variable or field 'efc_set_wait_state' declared void -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:25: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/efc.h:121:30: error: 'p_efc' was not declared in this scope -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:121:46: error: expected primary-expression before 'ul_fws' -void efc_set_wait_state(Efc *p_efc, uint32_t ul_fws); -^ -.piolibdeps/DueFlashStorage/src/efc.h:122:29: error: 'Efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:122:34: error: 'p_efc' was not declared in this scope -uint32_t efc_get_wait_state(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:30: error: 'Efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:35: error: 'p_efc' was not declared in this scope -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:123:51: error: expected primary-expression before 'ul_command' -uint32_t efc_perform_command(Efc *p_efc, uint32_t ul_command, -^ -.piolibdeps/DueFlashStorage/src/efc.h:124:12: error: expected primary-expression before 'ul_argument' -uint32_t ul_argument); -^ -.piolibdeps/DueFlashStorage/src/efc.h:124:23: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t ul_argument); -^ -.piolibdeps/DueFlashStorage/src/efc.h:125:25: error: 'Efc' was not declared in this scope -uint32_t efc_get_status(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:125:30: error: 'p_efc' was not declared in this scope -uint32_t efc_get_status(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:126:25: error: 'Efc' was not declared in this scope -uint32_t efc_get_result(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:126:30: error: 'p_efc' was not declared in this scope -uint32_t efc_get_result(Efc *p_efc); -^ -.piolibdeps/DueFlashStorage/src/efc.h:127:36: error: 'Efc' was not declared in this scope -uint32_t efc_perform_read_sequence(Efc *p_efc, -^ -.piolibdeps/DueFlashStorage/src/efc.h:127:41: error: 'p_efc' was not declared in this scope -uint32_t efc_perform_read_sequence(Efc *p_efc, -^ -.piolibdeps/DueFlashStorage/src/efc.h:128:12: error: expected primary-expression before 'ul_cmd_st' -uint32_t ul_cmd_st, uint32_t ul_cmd_sp, -^ -.piolibdeps/DueFlashStorage/src/efc.h:128:32: error: expected primary-expression before 'ul_cmd_sp' -uint32_t ul_cmd_st, uint32_t ul_cmd_sp, -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:12: error: expected primary-expression before '*' token -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:13: error: 'p_ul_buf' was not declared in this scope -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:32: error: expected primary-expression before 'ul_size' -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/efc.h:129:39: warning: expression list treated as compound expression in initializer [-fpermissive] -uint32_t *p_ul_buf, uint32_t ul_size); -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:89:31: error: 'IFLASH0_PAGE_SIZE' was not declared in this scope -# define IFLASH_PAGE_SIZE IFLASH0_PAGE_SIZE -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:94:35: note: in expansion of macro 'IFLASH_PAGE_SIZE' -static uint32_t gs_ul_page_buffer[IFLASH_PAGE_SIZE / sizeof(uint32_t)]; -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:106:31: error: variable or field 'translate_address' declared void -static void translate_address(Efc **pp_efc, uint32_t ul_addr, -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:106:31: error: 'Efc' was not declared in this scope -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:106:37: error: 'pp_efc' was not declared in this scope -static void translate_address(Efc **pp_efc, uint32_t ul_addr, -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:106:54: error: expected primary-expression before 'ul_addr' -static void translate_address(Efc **pp_efc, uint32_t ul_addr, -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:107:12: error: expected primary-expression before '*' token -uint16_t *pus_page, uint16_t *pus_offset) -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:107:13: error: 'pus_page' was not declared in this scope -uint16_t *pus_page, uint16_t *pus_offset) -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:107:32: error: expected primary-expression before '*' token -uint16_t *pus_page, uint16_t *pus_offset) -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:107:33: error: 'pus_offset' was not declared in this scope -uint16_t *pus_page, uint16_t *pus_offset) -^ -.piolibdeps/DueFlashStorage/src/flash_efc.cpp:913:1: error: expected '}' at end of input -} -^ -*** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/flash_efc.cpp.o] Error 1 -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:668:11: warning: unused variable 'j' [-Wunused-variable] -uint8_t j, result; -^ -lighthub/item.cpp:668:14: warning: unused variable 'result' [-Wunused-variable] -uint8_t j, result; -^ -lighthub/item.cpp:669:12: warning: unused variable 'data' [-Wunused-variable] -uint16_t data[1]; -^ -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:914:93: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) -^ -lighthub/item.cpp:914:121: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) -^ -lighthub/item.cpp:890:13: warning: unused variable 'mask' [-Wunused-variable] -short mask = getArg(2); -^ -lighthub/item.cpp: In member function 'int Item::checkModbus(int)': -lighthub/item.cpp:932:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:932:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:950:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::Pool()': -lighthub/item.cpp:962:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'virtual int Item::Ctrl(short int, short int, int*, boolean)': -lighthub/item.cpp:517:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:684:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::VacomSetHeat(int, int8_t, int8_t)': -lighthub/item.cpp:715:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In function 'int modbusSet(int, uint16_t, int, uint16_t)': -lighthub/item.cpp:787:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkFM()': -lighthub/item.cpp:878:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:921:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -.piolibdeps/aJson/aJSON.cpp: In member function 'virtual bool aJsonEEPROMStream::available()': -.piolibdeps/aJson/aJSON.cpp:145:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -while (addr+offsetprint('[') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:862:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(',') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:868:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(']') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp: In member function 'int aJsonStream::printObject(aJsonObject*)': -.piolibdeps/aJson/aJSON.cpp:960:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print('{') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:970:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(':') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:981:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print(',') == EOF) -^ -.piolibdeps/aJson/aJSON.cpp:987:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (this->print('}') == EOF) -^ -In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, -from lighthub/item.cpp:29: -lighthub/item.cpp: At top level: -.piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'crc16_update' defined but not used [-Wunused-function] -static uint16_t crc16_update(uint16_t crc, uint8_t a) -^ -========================================================================================= [ERROR] Took 1.45 seconds ========================================================================================= - -================================================================================================= [SUMMARY] ================================================================================================= -Environment due [SKIP] -Environment megaatmega2560 [ERROR] -========================================================================================= [ERROR] Took 1.45 seconds ========================================================================================= -livello@lserver ~/PROG/lighthub $ diff --git a/platformio.ini b/platformio.ini index b610c19..14635e5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,7 +10,7 @@ [platformio] src_dir = lighthub env_default = - megaatmega2560 +; megaatmega2560 due [env:due] @@ -18,6 +18,8 @@ platform = atmelsam framework = arduino board = due lib_ldf_mode = chain+ +build_flags = !echo -n "-DPIO_SRC_REV="$(git branch) +;echo "-DPIO_SRC_REV_COMMIT="$( git rev-parse --short HEAD) lib_deps = https://github.com/sebnil/DueFlashStorage https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49 @@ -28,7 +30,8 @@ lib_deps = https://github.com/anklimov/aJson https://github.com/anklimov/CmdArduino https://github.com/anklimov/ModbusMaster - https://github.com/anklimov/Ethernet +; https://github.com/anklimov/Ethernet + 872 ; https://github.com/PaulStoffregen/SPI.git https://github.com/knolleary/pubsubclient.git https://github.com/anklimov/Artnet.git