Test1

Dependencies:   mbed

Revision:
6:1364a236ee22
Parent:
5:ad4e5a078834
Child:
7:7aaa14391264
--- a/main.cpp	Sat Aug 03 13:17:12 2019 +0000
+++ b/main.cpp	Sat Aug 03 13:44:32 2019 +0000
@@ -9,9 +9,9 @@
 
 uint8_t ArrTx[ArrTxSize] = {0x20,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4b,0x4c,0x4d,0x4e,0x4f};
 uint8_t ArrRx[ArrRxSize] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
+uint8_t *pArrTx = &ArrTx[0];
+uint8_t *pArrRx = &ArrRx[0];
 
-uint8_t *pArrTx = &ArrTx[0];
- 
 void IntrTx() {
     if ( ++pArrTx <= &ArrTx[ArrTxSize-1] ){
     pc.putc(*pArrTx);
@@ -26,8 +26,6 @@
     for ( ; qty > 0; src++,dst++,qty-- ) *dst = *src;
     }
     
-uint8_t *pArrRx = &ArrRx[0];
-
 void IntrRx() {
     *pArrRx = pc.getc();
     if ( pArrRx++ >= &ArrRx[ArrRxSize-1] ) {