copy from dualboots_Gai_youhua_anbang_tag/keil/customboot/include/drivers/ymodem.c
copy to dualboots_Gai_youhua/keil/secondboot/include/drivers/ymodem.c
Îļþ´Ó dualboots_Gai_youhua_anbang_tag/keil/customboot/include/drivers/ymodem.c ¸´ÖÆ |
| | |
| | | { |
| | | while (timeout-- > 0) |
| | | { |
| | | if (Serial0KeyPressed(c) == 1)//妿æ¶å°ä¸²å£æ°æ® |
| | | if (SerialKeyPressed(c) == 1)//妿æ¶å°ä¸²å£æ°æ® |
| | | { |
| | | // Serial0_PutString("æ¥åæå"); |
| | | return 0; |
| | |
| | | */ |
| | | uint32_t Send_Byte (uint8_t c) |
| | | { |
| | | Serial0PutChar(c);//å·²ä¿®æ¹ |
| | | SerialPutChar(c);//å·²ä¿®æ¹ |
| | | return 0; |
| | | } |
| | | |