Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone project...
[pub/USBasp.git] / Projects / XPLAINBridge / Lib / SoftUART.c
index bc02653..31b11c1 100644 (file)
 volatile uint8_t srx_done, stx_count;\r
 volatile uint8_t srx_data, srx_mask, srx_tmp, stx_data;\r
 \r
-unsigned char SoftUART_IsReady(void)\r
+uint8_t SoftUART_IsReady(void)\r
 {\r
        return !(stx_count);\r
 }\r
 \r
-unsigned char SoftUART_TxByte(unsigned char c)\r
+uint8_t SoftUART_TxByte(uint8_t Byte)\r
 {\r
        while (stx_count);\r
 \r
-       stx_data  = ~c;\r
+       stx_data  = ~Byte;\r
        stx_count = 10;\r
 \r
-       return c;\r
+       return Byte;\r
 }\r
 \r
-unsigned char SoftUART_IsReceived(void)\r
+uint8_t SoftUART_IsReceived(void)\r
 {\r
        return srx_done;\r
 }\r
 \r
-unsigned char SoftUART_RxByte(void)\r
+uint8_t SoftUART_RxByte(void)\r
 {\r
        while (!(srx_done));\r
 \r