Page 593 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 593
while (!(USART2->SR & USART_FLAG_TXE));
LCD(line1, "sending ok!");
/** UART Sending Test Engine made by Cha
* @ Manual
* DataPiece -----> (UART) -----> count up -----> Raspi UART(8)
* Print count at line2.
* After test, annotate Engine part.
* 16.10.28
**/
//------------------------------------------- START LINE
/*if(sendCount == 10)
sendCount = 0;
LCD_fix(line2, 320-16, (char)(++sendCount)+48);
*/
// --------------------------------------------- END LINE
USART2->DR = (Data & (uint16_t)0x01FF);
}
void USART2Write(u8* data, u16 len)
{
u16 i;
// LCD(line9, data);
// DIR485_H ;
for (i=0; i<len; i++){
USART2_SendByte(*(data+i));
}
// Delay10us(1000);
// DIR485_L;
- 586 -