These are chat archives for SmingHub/Sming

25th
Dec 2016
slaff
@slaff
Dec 25 2016 11:33 UTC
@crosofg if you want to compile the cusrom Pwm remove once third-party/pwm directory and run make
It will automagically patch the PWM source to compile.
crosofg
@crosofg
Dec 25 2016 14:17 UTC
@slaff I did not understand. Waht to remove?
slaff
@slaff
Dec 25 2016 15:37 UTC
rm -rf $SMING_HOME/third-party/pwm
make -C $SMING_HOME clean; make -C $SMING_HOME ENABLE_CUSTOM_PWM=1
crosofg
@crosofg
Dec 25 2016 16:45 UTC
@slaff Still getting some errors
make all 
make[1]: Entering directory `/C/tools/sming/Sming'
third-party/pwm/pwm.c:163: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:51: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]);
upon building the project basichwpwm