Bonjour,
J'utilise le compilateur KEIL C51 µVISION2 pour programmer en C
mon microcontrolleur et j'ai une erreur à la compilation qui est liée à
ma programmation car j'ai intégrer une libaririe dans mon code existant et
c'est pas tjs facile.
L'erreur que je reçois c'est celle-ci :
Error C193 : '==' : illegal type conversion from/to 'void'
j'ai essayé de faire des includes etc.. mais rien la fonction est celle ci :
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);
Le résultat de ma compilation est celle-ci :
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
Pouvez vous m'aider s'agit il d'une définition manquante, d'un include ou lié à
un probleme précédent?
Merci