Statistics: Posted by uglyfish — Thu Nov 26, 2015 11:09 pm
Code:
#include "ets_sys.h"
#include "osapi.h"
#include "user_interface.h"
#include "driver/spi.h"
#include "driver/spi_overlap.h"
#define TASK0_PRIORITY (1)
#define TASK0_QLEN (64)
static os_event_t task0_q[TASK0_QLEN];
void user_rf_pre_init(void)
{
}
static void ICACHE_FLASH_ATTR task0(ETSEvent *event)
{
os_printf("task0 begin\n");
hspi_master_dev_init(HSPI_CS_DEV, 1, 1);
hspi_dev_sel(HSPI_CS_DEV);
spi_mast_byte_write(HSPI, 0x04);
spi_mast_byte_write(HSPI, 0xAA);
os_printf("task0 end\n");
}
void user_init(void)
{
os_printf("SDK version:%s\n", system_get_sdk_version());
gpio_init();
system_os_task(task0, TASK0_PRIORITY, task0_q, TASK0_QLEN);
system_os_post(TASK0_PRIORITY, 0, 0);
}
Statistics: Posted by shennongmin — Tue Nov 24, 2015 9:13 pm
Statistics: Posted by ESP_Faye — Mon Nov 23, 2015 6:42 pm
Code:
In file included from /home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/espressif/c_types.h:28:0,
from /home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/espressif/esp_common.h:93,
from user_main.c:25:
/home/wupf/bin/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
# include_next <stdint.h>
^
compilation terminated.
make[1]: *** [.output/eagle/debug/obj/user_main.o] Error 1
Code:
ESP8266_RTOS_SDK/include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
#if TENSILICA || 1
^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:123:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:220:6: error: "__int_fast64_t_defined" is not defined [-Werror=undef]
#if !__int_fast64_t_defined
^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:308:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:320:5: error: "__have_long64" is not defined [-Werror=undef]
#if __have_long64
^
cc1: all warnings being treated as errors
make[1]: *** [.output/eagle/debug/obj/user_main.o] Error 1
make[1]: Leaving directory `/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/examples/smart_config/user'
make: *** [.subdirs] Error 2
Statistics: Posted by shennongmin — Mon Nov 23, 2015 2:35 pm
Statistics: Posted by ESP_Faye — Fri Nov 20, 2015 2:52 pm
Statistics: Posted by uglyfish — Fri Nov 20, 2015 10:10 am
Statistics: Posted by ESP_Faye — Fri Nov 20, 2015 9:55 am