Statistics: Posted by philip — Mon Jan 18, 2016 11:44 pm
Statistics: Posted by eriksl — Mon Jan 18, 2016 11:20 pm
Statistics: Posted by philip — Thu Jan 14, 2016 11:50 am
Statistics: Posted by ESP_Faye — Wed Aug 12, 2015 7:51 pm
Code:
CLEAN SUCCESSFUL (total time: 4s)
C+ app/application.cpp
C+ app/hw_timer.cpp
In file included from c:/tools/Sming/Sming/system/include/esp_systemapi.h:6:0,
from include/user_config.h:29,
from app/hw_timer.cpp:1:
app/hw_timer.cpp: In function 'void hw_timer_init(FRC1_TIMER_SOURCE_TYPE, u8)':
c:/Espressif/ESP8266_SDK/include/ets_sys.h:55:20: error: 'NmiTimSetFunc' was not declared in this scope
NmiTimSetFunc(func)
^
app/hw_timer.cpp:65:9: note: in expansion of macro 'ETS_FRC_TIMER1_NMI_INTR_ATTACH'
ETS_FRC_TIMER1_NMI_INTR_ATTACH(hw_timer_isr_cb);
^
c:/Espressif/ESP8266_SDK/include/ets_sys.h:52:62: error: invalid conversion from 'void (*)()' to 'void*' [-fpermissive]
ets_isr_attach(ETS_FRC_TIMER1_INUM, (func), (void *)(arg))
^
app/hw_timer.cpp:67:9: note: in expansion of macro 'ETS_FRC_TIMER1_INTR_ATTACH'
ETS_FRC_TIMER1_INTR_ATTACH(hw_timer_isr_cb, NULL);
^
In file included from include/user_config.h:29:0,
from app/hw_timer.cpp:1:
c:/tools/Sming/Sming/system/include/esp_systemapi.h:46:13: error: initializing argument 2 of 'void ets_isr_attach(int, void*, void*)' [-fpermissive]
extern void ets_isr_attach(int intr, void *handler, void *arg);
^
make.exe": *** [out/build/app/hw_timer.o] Error 1
BUILD FAILED (exit value 2, total time: 9s)
Statistics: Posted by hrsavla — Wed Aug 12, 2015 4:46 pm
Statistics: Posted by dkinzer — Wed Aug 12, 2015 2:52 am
Statistics: Posted by ESP_Faye — Tue Aug 11, 2015 5:15 pm
Statistics: Posted by dkinzer — Thu Aug 06, 2015 11:03 pm
Statistics: Posted by ESP_Faye — Thu Aug 06, 2015 9:34 am
Statistics: Posted by dkinzer — Wed Aug 05, 2015 11:00 pm
Statistics: Posted by ESP_Faye — Wed Aug 05, 2015 11:04 am
Statistics: Posted by dkinzer — Mon Aug 03, 2015 11:26 pm
Code:
#define REG_READ(_r) (*(volatile uint32 *)(_r))
#define WDEV_NOW()\
REG_READ(0x3ff20c00)
static u32 tick_now2 = 0;
void hw_test_timer_cb(void)
{
static uint16 j = 0;
j++;
if( (WDEV_NOW() - tick_now2) >= 1000000 )
{
static u32 idx = 1;
tick_now2 = WDEV_NOW();
printf("b%u:%d\n",idx++,j);
j = 0;
}
//hw_timer_arm(50);
}
typedef enum {
FRC1_SOURCE = 0,
NMI_SOURCE = 1,
} FRC1_TIMER_SOURCE_TYPE;
void ICACHE_FLASH_ATTR user_init(void)
{
hw_timer_init(NMI_SOURCE,1);
hw_timer_set_func(hw_test_timer_cb);
hw_timer_arm(100);
}
Statistics: Posted by ESP_Faye — Mon Aug 03, 2015 9:38 am
Code:
void NmiTimSetFunc(void (*handler)(void));
Statistics: Posted by dkinzer — Fri Jul 31, 2015 7:58 am