Hi,
I have tried to remove this error but no way. Error C193 : '==' : illegal type conversion from/to 'void'
I have tried to include severals headers file but nothing, how can I resolve this error?
This error is in the function mem_task():
void mem_task (void) { Byte state; switch (mem_state) { case MEM_INIT: { #if MEM_CHIP_TYPE != CHIP_NONE /*if chip defined*/ if (Hard_chip_init() == OK)/* if init chip OK*/ { mem_state = MEM_CHIP_INIT; /*install chip*/ } #if MEM_CARD_TYPE != CARD_NONE /*if card defined*/ if (Hard_card_init() == KO) //ERROR: C193 { if (mem_state == MEM_INIT)/*if init fail*/ { print_screen(FATAL_CHIP_SCREEN);/*error*/ while(1);
and my build target output is :
Build target 'Target 1' compiling main.c... compiling I2C.c... compiling ADC.c... compiling AUD.c... compiling DAC.c... compiling MICRO2.c... compiling DONG2.c... assembling STARTUP.A51... compiling variable.c... compiling ide_drv.c... compiling C_Flash.c... compiling CF_oper.c... modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(16): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier modules\file\fat.h(19): warning C322: unknown identifier CF_oper.c(189): warning C307: macro 'fat_install': parameter count mismatch CF_oper.c(240): warning C307: macro 'fat1216_save_cluster_info': parameter count mismatch CF_oper.c(241): warning C307: macro 'fat1216_feob': parameter count mismatch compiling cf_drv_.c... compiling ata.c... compiling file.c... modules\file\file.c(184): warning C316: unterminated conditionals compiling fs_variable.c... compiling fat.c... modules\file\fat.c(3790): warning C316: unterminated conditionals compiling song_task.c... compiling mem_task.c... MODULES\MEM\MEM_TASK.C(123): error C193: '==': illegal type conversion from/to 'void' Target not created
Thank you