device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0 and CKCON1.
[fw/sdcc] / device / examples / test2.c
index 2a51e35ff65c23dc88d18ac6b90ac363a3916e30..13c1980605691c358ce7f3b8dfe078bd3edbcda5 100644 (file)
@@ -19,7 +19,7 @@ void telec_pet_Estado();
 
 /* Fichero de definiciĆ³n de direcciones de memoria
        asignadas a los diferentes registros */
-#include "reg51.h"
+#include <8051.h>
 
 /* Direcciones de los puertos P4 y P5 y del TIMER3*/
 sfr P4     = 0xC0;
@@ -293,7 +293,8 @@ void tint() interrupt 1 using 1
 */
 unsigned char codigo(unsigned char tc1,unsigned char tc2,unsigned char tc3,unsigned char tc4)
 {
-       unsigned char red;
+//     unsigned char red;
+       unsigned char red = 0;
 
        if (tc1 != 0x00)
        {