vasko ozo
/
F031K6_TxRxService
Test1
main.cpp@12:6f63e376c0aa, 2019-08-03 (annotated)
- Committer:
- VASKO
- Date:
- Sat Aug 03 21:21:01 2019 +0000
- Revision:
- 12:6f63e376c0aa
- Parent:
- 11:6519744c77f9
- Child:
- 13:b9e066badefa
New struct and union types added. Arrays sizes redefined.
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 | 12:6f63e376c0aa | 8 | |
VASKO | 2:56a194afd255 | 9 | //Exige Monumentum |
VASKO | 9:dcddb19ad551 | 10 | //Я дебил,потому что хотел выполнить действия,которые |
VASKO | 2:56a194afd255 | 11 | //требуются постоянно,один раз и именно здесь. |
VASKO | 0:5152e3f9df72 | 12 | |
VASKO | 12:6f63e376c0aa | 13 | //Для дебилов: в mbed типы "int" и "unsigned int" имеют размер 4 байта !!! |
VASKO | 12:6f63e376c0aa | 14 | |
VASKO | 0:5152e3f9df72 | 15 | while(1) { |
VASKO | 8:cad966c09853 | 16 | if ( ArrRxCmplt == 1 ){ |
VASKO | 10:f7a320faef76 | 17 | memcpy(&TxBuff, &RxBuff, ArrTxSize); |
VASKO | 10:f7a320faef76 | 18 | TxBuffFull = 1; |
VASKO | 8:cad966c09853 | 19 | ArrRxCmplt = 0; |
VASKO | 8:cad966c09853 | 20 | } |
VASKO | 10:f7a320faef76 | 21 | if( !ArrTxBusy && TxBuffFull ) { |
VASKO | 10:f7a320faef76 | 22 | StartTx(); |
VASKO | 10:f7a320faef76 | 23 | TxBuffFull = 0; |
VASKO | 10:f7a320faef76 | 24 | } |
VASKO | 8:cad966c09853 | 25 | }//while(1) |
VASKO | 9:dcddb19ad551 | 26 | }//main |
VASKO | 9:dcddb19ad551 | 27 |