j'essai de lire une sonde DS18B20 avec un PIC 16F887 sous MPLAB X IDE et compilateur XC8 mode 90.
J'ai téléchargé un programme de démo pour le modifier (sans modif il ne tourne pas).
Le but final est de l'utiliser avec un autre programme.
Voici les erreures:
Main.c:31:7: warning: (107) illegal # directive "device"
Main.c:31:9: warning: (163) unexpected text in control line ignored
Main.c:33:4: warning: (107) illegal # directive "use"
Main.c:33:6: warning: (163) unexpected text in control line ignored
1wire.c:13:1: warning: (361) function declared implicit int
make[2]: *** [build/default/production/1wire.p1] Error 1
1wire.c:13:12: error: (192) undefined identifier "PIN_C6"
make[2]: *** Waiting for unfinished jobs....
1wire.c:14:1: warning: (361) function declared implicit int
1wire.c:15:1: warning: (361) function declared implicit int
1wire.c:32:12: error: (192) undefined identifier "PIN_C6"
1wire.c:34:1: warning: (361) function declared implicit int
1wire.c:34:20: warning: (361) function declared implicit int
1wire.c:54:12: error: (192) undefined identifier "PIN_C6"
1wire.c:58:21: warning: (361) function declared implicit int
(908)
status = 1nbproject/Makefile-default.mk:138: recipe for target 'build/default/production/1wire.p1' failed
1wire.c:13:1: warning: (361) function declared implicit int
1wire.c:13:12: error: (192) undefined identifier "PIN_C6"
1wire.c:15:1: warning: (361) function declared implicit int
1wire.c:32:12: error: (192) undefined identifier "PIN_C6"
1wire.c:34:1: warning: (361) function declared implicit int
1wire.c:34:20: warning: (361) function declared implicit int
1wire.c:54:12: error: (192) undefined identifier "PIN_C6"
1wire.c:58:21: warning: (361) function declared implicit int
Main.c:97:1: warning: (361) function declared implicit int
Main.c:97:15: error: (192) undefined identifier "RTCC_INTERNAL"
Main.c:97:29: error: (192) undefined identifier "RTCC_DIV_1"
Main.c:98:1: warning: (361) function declared implicit int
Main.c:98:15: error: (192) undefined identifier "T1_DISABLED"
Main.c:99:1: warning: (361) function declared implicit int
Main.c:99:15: error: (192) undefined identifier "T2_DISABLED"
Main.c:118:1: warning: (361) function declared implicit int
Avez-vous une idée pour m'en sortir.
Cdt.
Marcus


