These are chat archives for SmingHub/Sming

24th
Dec 2016
slaff
@slaff
Dec 24 2016 06:21
@/all Sming 3.0.0 is officially released: http://sminghub.github.io/Sming/Release3.0/ Merry Christmas and Happy New Year everyone
laurentppol
@laurentppol
Dec 24 2016 06:52
Merry Xmas @slaff :)
laurentppol
@laurentppol
Dec 24 2016 07:22
@slaff for security tests on ESP I've made a post on OpenWRT forum, on how to set up a router (being AP for ESP) to mirror WiFi traffic to Ethernet (for Wireshark analysis)
I am curious, if there will be ONLY what "we" programmed to be, or something more
riban-bw
@riban-bw
Dec 24 2016 10:23
Well done @slaff . Looking forward to playing over the Xmas break.
crosofg
@crosofg
Dec 24 2016 12:32
Cant make HWPWM example in new sming
make all 
third-party/pwm/pwm.c:158:1: error: conflicting types for 'pwm_init'
make[1]: Entering directory `/C/tools/sming/Sming'
 pwm_init(uint32_t period, uint32_t *duty, uint32_t pwm_channel_num,
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:22:6: note: previous declaration of 'pwm_init' was here
 void pwm_init(uint32 period, uint32 *duty,uint32 pwm_channel_num,uint32 (*pin_info_list)[3]);
      ^
In file included from third-party/pwm/pwm.c:48:0:
third-party/pwm/pwm.c: In function 'pwm_init':
c:/Espressif/ESP8266_SDK/include/ets_sys.h:53:5: error: implicit declaration of function 'ets_isr_attach' [-Werror=implicit-function-declaration]
     ets_isr_attach(ETS_FRC_TIMER1_INUM, (func), (void *)(arg))
     ^
third-party/pwm/pwm.c:195:2: note: in expansion of macro 'ETS_FRC_TIMER1_INTR_ATTACH'
  ETS_FRC_TIMER1_INTR_ATTACH(pwm_intr_handler, NULL);
  ^
third-party/pwm/pwm.c: In function 'pwm_start':
c:/Espressif/ESP8266_SDK/include/ets_sys.h:74:5: error: implicit declaration of function 'ets_isr_mask' [-Werror=implicit-function-declaration]
     ets_isr_mask((1<<inum))
     ^
c:/Espressif/ESP8266_SDK/include/ets_sys.h:86:2: note: in expansion of macro 'ETS_INTR_DISABLE'
  ETS_INTR_DISABLE(ETS_FRC_TIMER1_INUM)
  ^
third-party/pwm/pwm.c:374:4: note: in expansion of macro 'ETS_FRC1_INTR_DISABLE'
    ETS_FRC1_INTR_DISABLE();
    ^
c:/Espressif/ESP8266_SDK/include/ets_sys.h:71:5: error: implicit declaration of function 'ets_isr_unmask' [-Werror=implicit-function-declaration]
     ets_isr_unmask((1<<inum))
     ^
c:/Espressif/ESP8266_SDK/include/ets_sys.h:83:2: note: in expansion of macro 'ETS_INTR_ENABLE'
  ETS_INTR_ENABLE(ETS_FRC_TIMER1_INUM)
  ^
third-party/pwm/pwm.c:391:3: note: in expansion of macro 'ETS_FRC1_INTR_ENABLE'
   ETS_FRC1_INTR_ENABLE();
   ^
third-party/pwm/pwm.c: At top level:
third-party/pwm/pwm.c:401:1: error: conflicting types for 'pwm_set_duty'
 pwm_set_duty(uint32_t duty, uint8_t channel)
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:25:6: note: previous declaration of 'pwm_set_duty' was here
 void pwm_set_duty(uint32 duty, uint8 channel);
      ^
third-party/pwm/pwm.c:413:1: error: conflicting types for 'pwm_get_duty'
 pwm_get_duty(uint8_t channel)
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:26:8: note: previous declaration of 'pwm_get_duty' was here
 uint32 pwm_get_duty(uint8 channel);
        ^
third-party/pwm/pwm.c:421:1: error: conflicting types for 'pwm_set_period'
 pwm_set_period(uint32_t period)
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:27:6: note: previous declaration of 'pwm_set_period' was here
 void pwm_set_period(uint32 period);
      ^
third-party/pwm/pwm.c:432:1: error: conflicting types for 'pwm_get_period'
 pwm_get_period(void)
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:28:8: note: previous declaration of 'pwm_get_period' was here
 uint32 pwm_get_period(void);
        ^
third-party/pwm/pwm.c:438:1: error: conflicting types for 'get_pwm_version'
 get_pwm_version(void)
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:30:8: note: previous declaration of 'get_pwm_version' was here
 uint32 get_pwm_version(void);
        ^
cc1.exe: all warnings being treated as errors
make[1]: *** [compiler/lib/libpwm.a] Error 1
make[1]: Leaving directory `/C/tools/sming/Sming'
make: *** [/C/tools/sming/Sming/compiler/lib//libpwm.a] Error 2
which esp sdk has to be used?
crosofg
@crosofg
Dec 24 2016 12:52
how to compile new pwm lib
it gives error
crosofg
@crosofg
Dec 24 2016 14:02
make all 
make[1]: Entering directory `/C/tools/sming/Sming'
third-party/pwm/pwm.c:158:1: error: conflicting types for 'pwm_init'
 pwm_init(uint32_t period, uint32_t *duty, uint32_t pwm_channel_num,
 ^
In file included from third-party/pwm/pwm.c:46:0:
c:/Espressif/ESP8266_SDK/include/pwm.h:22:6: note: previous declaration of 'pwm_init' was here
 void pwm_init(uint32 period, uint32 *duty,uint32 pwm_channel_num,uint32 (*pin_info_list)[3]);
what sort of error is thsi
laurentppol
@laurentppol
Dec 24 2016 23:02
trying to add new C module to program I went into such errors (top lines):
In file included from /opt/Sming-develop/Sming/SmingCore/../Wiring/WiringFrameworkIncludes.h:14:0, from /opt/Sming-develop/Sming/SmingCore/SmingCore.h:13, from app/keyboard_filter.h:73, from app/keyboard_filter.c:14: /opt/Sming-develop/Sming/SmingCore/../Wiring/Countable.h:22:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token template<typename T> ^ In file included from /opt/Sming-develop/Sming/SmingCore/../Wiring/WiringFrameworkIncludes.h:15:0, from /opt/Sming-develop/Sming/SmingCore/SmingCore.h:13, from app/keyboard_filter.h:73, from app/keyboard_filter.c:14: /opt/Sming-develop/Sming/SmingCore/../Wiring/WVector.h:25:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token template <typename Element> ^ /opt/Sming-develop/Sming/SmingCore/../Wiring/WVector.h:115:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token template <class Element> ^ /opt/Sming-develop/Sming/SmingCore/../Wiring/WVector.h:125:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token template <class Element>
what am I missing?
laurentppol
@laurentppol
Dec 24 2016 23:10

include for <SmingCore/SmingCore.h> seems to be problem starting point

laurentppol
@laurentppol
Dec 24 2016 23:17
a bit crazy: I am symplinking C sources from AVR project, this time "just symlinked", NOT changing name to *.cpp...
changed to CPP... compiles :|