我用的18F4423芯片,MCC18的C语言编辑器,在编辑时出现如此的错,怎么解决才好,请指教。。
程序如下: #include <p18cxxx.h> #include <p18f4423.h>
//__CONFIG(XT&WDTEN&PWRTEN&BOREN); #define BAUD 9600 #define FOSC 4000000L #define NINE 0 // Use 9bit communication? FALSE=8bit */
#define DIVIDER ((int)(FOSC/(16UL * BAUD) -1)) #define HIGH_SPEED 1
#if HIGH_SPEED == 1 #define SPEED 0x4 #else #define SPEED 0 #endif
#define a164_clk RD0 #define a164_data RD1
void init(); void delay(); void delay1(); void factory_set(); void send_164(); void class_choose(); void send_rs232(); void receive_spi_data(); void send_spi_data();
unsigned near char uii;
#pragma code
void main(void){
while(1){ ClrWdt(); _Nop();
} }
Error[1109] C:\MCC18\h\p18f4423.h 59 : type mismatch in redeclaration of 'PORTAbits' Error[1109] C:\MCC18\h\p18f4423.h 133 : type mismatch in redeclaration of 'PORTCbits' Error[1109] C:\MCC18\h\p18f4423.h 192 : type mismatch in redeclaration of 'PORTEbits'
。 。 。 。 |