예제 #1
0
void IR_Debug_func()
{

	WDTCON |= BIT(7);
	while(1){

		if(irda_state==32){
		        printf_u16(user_code,'C');
		        deg_str("\r\n");
		        printf_u16(irda_data,'D');
			deg_str("\r\n");
			delay_10ms(50);
		}
	}
		
}
예제 #2
0
파일: iic_api.c 프로젝트: go2net/kt-rec-pro
void EPPROM_TEST(void)
{
	u16 addr=0,w_data=0,r_data=0;

	deg_str(" EPPROM_TEST START\n");
	
	deg_str(" EPPROM_WRITE START \n");
#if 1
	w_data = 0xA0;

	for(addr=0;addr<0x3FF;){
		
		write_eerom(addr,w_data);
		printf_u16(w_data, 'W');
		printf_u16(addr, 'A');
		addr++;		
		if((addr%0xFF)==0){
			w_data++;
			deg_str(" W --------------- W  \n");
		}
	}

	deg_str(" EPPROM_WRITE END \n");
#endif	
	deg_str(" EPPROM_READ ...   \n");

	for(addr=0;addr<0x3FF;){
		r_data = read_eerom(addr);
		delay_10ms(2);
#ifdef UART_ENABLE
		printf_u16(r_data, 'R');
		printf_u16(addr, 'A');
#endif
		if((addr%0xFF)==0){
			deg_str(" R --------------- R  \n");
		}		

		addr++;
	}	


	deg_str(" EPPROM_TEST END \n");
	
}