vasko ozo
/
TxRxService
20190816
main.cpp@11:6519744c77f9, 2019-08-03 (annotated)
- Committer:
- VASKO
- Date:
- Sat Aug 03 20:03:56 2019 +0000
- Revision:
- 11:6519744c77f9
- Parent:
- 10:f7a320faef76
- Child:
- 12:6f63e376c0aa
Organized TxRxService (aka "class").
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
VASKO | 7:7aaa14391264 | 1 | #include "PrjDefs.h" |
VASKO | 0:5152e3f9df72 | 2 | |
VASKO | 0:5152e3f9df72 | 3 | DigitalOut myled(LED1); |
VASKO | 0:5152e3f9df72 | 4 | |
VASKO | 0:5152e3f9df72 | 5 | |
VASKO | 0:5152e3f9df72 | 6 | int main() { |
VASKO | 11:6519744c77f9 | 7 | TxRxServiceInit(); |
VASKO | 0:5152e3f9df72 | 8 | |
VASKO | 2:56a194afd255 | 9 | //Exige Monumentum |
VASKO | 9:dcddb19ad551 | 10 | //Я дебил,потому что хотел выполнить действия,которые |
VASKO | 2:56a194afd255 | 11 | //требуются постоянно,один раз и именно здесь. |
VASKO | 0:5152e3f9df72 | 12 | |
VASKO | 0:5152e3f9df72 | 13 | while(1) { |
VASKO | 8:cad966c09853 | 14 | if ( ArrRxCmplt == 1 ){ |
VASKO | 10:f7a320faef76 | 15 | memcpy(&TxBuff, &RxBuff, ArrTxSize); |
VASKO | 10:f7a320faef76 | 16 | TxBuffFull = 1; |
VASKO | 8:cad966c09853 | 17 | ArrRxCmplt = 0; |
VASKO | 8:cad966c09853 | 18 | } |
VASKO | 10:f7a320faef76 | 19 | if( !ArrTxBusy && TxBuffFull ) { |
VASKO | 10:f7a320faef76 | 20 | StartTx(); |
VASKO | 10:f7a320faef76 | 21 | TxBuffFull = 0; |
VASKO | 10:f7a320faef76 | 22 | } |
VASKO | 8:cad966c09853 | 23 | }//while(1) |
VASKO | 9:dcddb19ad551 | 24 | }//main |
VASKO | 9:dcddb19ad551 | 25 |