You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing the project and selecting target "all" causes errors:
15:34:51 **** Build of configuration Default for project blinky3 ****
mingw32-make.exe -f C:/Espressif/WebSocketServer/espws_server-master/Makefile all
CC driver/uart.c
In file included from driver/uart.c:11:0:
driver/uart.c: In function 'uart_config':
c:/Espressif/ESP8266_SDK/include/ets_sys.h:65:5: error: implicit declaration of function 'ets_isr_attach' [-Werror=implicit-function-declaration]
ets_isr_attach(ETS_UART_INUM, (func), (void *)(arg))
^
driver/uart.c:55:9: note: in expansion of macro 'ETS_UART_INTR_ATTACH'
ETS_UART_INTR_ATTACH(uart0_rx_intr_handler, &(UartDev.rcv_buff));
^
driver/uart.c:63:5: error: implicit declaration of function 'uart_div_modify' [-Werror=implicit-function-declaration]
uart_div_modify(uart_no, (uint16)(UART_CLK_FREQ / (uint32)(UartDev.baut_rate)));
^
driver/uart.c: At top level:
driver/uart.c:180:1: error: conflicting types for 'uart_init'
uart_init(UartBautRate uart0_br)
^
In file included from driver/uart.c:13:0:
driver/include/uart.h:98:6: note: previous declaration of 'uart_init' was here
void uart_init(UartBautRate uart0_br, UartBautRate uart1_br);
^
In file included from driver/uart.c:11:0:
driver/uart.c: In function 'uart_init':
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:77:5: note: in expansion of macro 'ETS_INTR_ENABLE'
ETS_INTR_ENABLE(ETS_UART_INUM)
^
driver/uart.c:186:5: note: in expansion of macro 'ETS_UART_INTR_ENABLE'
ETS_UART_INTR_ENABLE();
^
In file included from driver/uart.c:12:0:
c:/Espressif/ESP8266_SDK/include/osapi.h:13:26: error: implicit declaration of function 'ets_install_putc1' [-Werror=implicit-function-declaration]
#define os_install_putc1 ets_install_putc1
^
driver/uart.c:188:5: note: in expansion of macro 'os_install_putc1'
os_install_putc1(uart1_write_char);
^
driver/uart.c:190:31: error: 'UART_TX_BUFFER_SIZE' undeclared (first use in this function)
pTxBuffer = Uart_Buf_Init(UART_TX_BUFFER_SIZE);
^
driver/uart.c:190:31: note: each undeclared identifier is reported only once for each function it appears in
driver/uart.c:191:31: error: 'UART_RX_BUFFER_SIZE' undeclared (first use in this function)
pRxBuffer = Uart_Buf_Init(UART_RX_BUFFER_SIZE);
^
driver/uart.c: In function 'Uart_Buf_Init':
driver/uart.c:243:9: error: implicit declaration of function 'DBG1' [-Werror=implicit-function-declaration]
DBG1("no buf for uart\n\r");
^
driver/uart.c:250:9: error: implicit declaration of function 'DBG' [-Werror=implicit-function-declaration]
DBG("test heap size: %d\n\r", heap_size);
^
In file included from driver/uart.c:16:0:
c:/Espressif/ESP8266_SDK/include/mem.h:17:27: error: implicit declaration of function 'pvPortMalloc' [-Werror=implicit-function-declaration]
#define os_malloc(s) pvPortMalloc(s, "", 0)
^
driver/uart.c:251:57: note: in expansion of macro 'os_malloc'
struct UartBuffer *pBuff = (struct UartBuffer *)os_malloc((uint32)sizeof(struct UartBuffer));
^
driver/uart.c:251:82: error: invalid application of 'sizeof' to incomplete type 'struct UartBuffer'
struct UartBuffer *pBuff = (struct UartBuffer )os_malloc((uint32)sizeof(struct UartBuffer));
^
c:/Espressif/ESP8266_SDK/include/mem.h:17:40: note: in definition of macro 'os_malloc'
#define os_malloc(s) pvPortMalloc(s, "", 0)
^
driver/uart.c:252:14: error: dereferencing pointer to incomplete type 'struct UartBuffer'
pBuff->UartBuffSize = (uint16)buf_size; // THIS OK
^
In file included from driver/uart.c:12:0:
driver/uart.c: In function 'Uart_Buf_Cpy':
c:/Espressif/ESP8266_SDK/include/osapi.h:16:19: error: implicit declaration of function 'ets_memcpy' [-Werror=implicit-function-declaration]
#define os_memcpy ets_memcpy
^
driver/uart.c:274:9: note: in expansion of macro 'os_memcpy'
os_memcpy(pCur->pInPos , pdata , data_len);
^
In file included from driver/uart.c:16:0:
driver/uart.c: In function 'uart_buf_free':
c:/Espressif/ESP8266_SDK/include/mem.h:16:27: error: implicit declaration of function 'vPortFree' [-Werror=implicit-function-declaration]
#define os_free(s) vPortFree(s, "", 0)
^
driver/uart.c:302:13: note: in expansion of macro 'os_free'
os_free(pBuff->pUartBuff);
^
driver/uart.c: In function 'rx_buff_enq':
driver/uart.c:390:23: error: 'TRANS_TASK_PROI' undeclared (first use in this function)
if(system_os_post(TRANS_TASK_PROI, (ETSSignal)TRANS_RECV_DATA_FROM_UART, par) != TRUE) {
^
driver/uart.c:390:51: error: 'TRANS_RECV_DATA_FROM_UART' undeclared (first use in this function)
if(system_os_post(TRANS_TASK_PROI, (ETSSignal)TRANS_RECV_DATA_FROM_UART, par) != TRUE) {
^
In file included from driver/uart.c:12:0:
c:/Espressif/ESP8266_SDK/include/osapi.h:42:19: error: implicit declaration of function 'os_printf_plus' [-Werror=implicit-function-declaration]
#define os_printf os_printf_plus
^
driver/uart.c:391:9: note: in expansion of macro 'os_printf'
os_printf("post fail!!!\n\r");
^
driver/uart.c: In function 'tx_buff_enq':
driver/uart.c:405:39: error: 'UART_TX_BUFFER_SIZE' undeclared (first use in this function)
pTxBuffer = Uart_Buf_Init(UART_TX_BUFFER_SIZE);
^
driver/uart.c:423:21: error: implicit declaration of function 'ets_delay_us' [-Werror=implicit-function-declaration]
ets_delay_us(70);
^
driver/uart.c:431:57: error: 'URAT_TX_LOWER_SIZE' undeclared (first use in this function)
if ((pTxBuffer != NULL) && (pTxBuffer->Space <= URAT_TX_LOWER_SIZE)) {
^
In file included from c:/Espressif/ESP8266_SDK/include/ets_sys.h:12:0,
from driver/uart.c:11:
driver/uart.c:436:43: error: 'UART_TX_EMPTY_THRESH_VAL' undeclared (first use in this function)
SET_PERI_REG_MASK(UART_CONF1(UART0), (UART_TX_EMPTY_THRESH_VAL & UART_TXFIFO_EMPTY_THRHD) << UART_TXFIFO_EMPTY_THRHD_S);
^
c:/Espressif/ESP8266_SDK/include/eagle_soc.h:50:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
driver/uart.c:436:5: note: in expansion of macro 'SET_PERI_REG_MASK'
SET_PERI_REG_MASK(UART_CONF1(UART0), (UART_TX_EMPTY_THRESH_VAL & UART_TXFIFO_EMPTY_THRHD) << UART_TXFIFO_EMPTY_THRHD_S);
^
driver/uart.c: In function 'tx_start_uart_buffer':
driver/uart.c:470:25: error: 'UART_FIFO_LEN' undeclared (first use in this function)
uint8 fifo_remain = UART_FIFO_LEN - tx_fifo_len ;
^
driver/uart.c:487:33: error: 'URAT_TX_UPPER_SIZE' undeclared (first use in this function)
if (pTxBuffer->Space >= URAT_TX_UPPER_SIZE) {
^
driver/uart.c:488:34: error: 'TRANS_TASK_PROI' undeclared (first use in this function)
(void)system_os_post(TRANS_TASK_PROI,(ETSSignal)TRANS_SEND_DATA_TO_UART_OVER,(ETSParam)0);
^
driver/uart.c:488:61: error: 'TRANS_SEND_DATA_TO_UART_OVER' undeclared (first use in this function)
(void)system_os_post(TRANS_TASK_PROI,(ETSSignal)TRANS_SEND_DATA_TO_UART_OVER,(ETSParam)0);
^
driver/uart.c: In function 'set_tcp_block':
driver/uart.c:513:9: error: implicit declaration of function 'DBG2' [-Werror=implicit-function-declaration]
DBG2("b space: %d\n\r", pTxBuffer->Space);
^
cc1.exe: all warnings being treated as errors
C:/Espressif/WebSocketServer/espws_server-master/Makefile:339: recipe for target 'build/driver/uart.o' failed
mingw32-make.exe: *** [build/driver/uart.o] Error 1
15:34:52 Build Finished (took 493ms)
The text was updated successfully, but these errors were encountered:
Importing the project and selecting target "all" causes errors:
15:34:52 Build Finished (took 493ms)
The text was updated successfully, but these errors were encountered: