소스 검색

cmRtSys.h/c : Added cmRtSysNetReportSyncEnable()

master
kpl 10 년 전
부모
커밋
7545105da1
2개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. 15
    1
      cmRtSys.c
  2. 1
    0
      cmRtSys.h

+ 15
- 1
cmRtSys.c 파일 보기

@@ -1329,12 +1329,26 @@ cmRtRC_t cmRtSysNetReport( cmRtSysH_t h )
1329 1329
   {
1330 1330
     cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i);
1331 1331
     if( cmRtNetIsValid(p->ssArray[i].netH))
1332
-      cmRtNetDoSync(p->ssArray[i].netH);
1332
+      cmRtNetReport(p->ssArray[i].netH);
1333 1333
   }
1334 1334
   return rc;
1335 1335
   
1336 1336
 }
1337 1337
 
1338
+cmRtRC_t cmRtSysNetReportSyncEnable( cmRtSysH_t h, bool enableFl )
1339
+{
1340
+  cmRtRC_t rc = kOkRtRC;
1341
+  cmRt_t*  p  = _cmRtHandleToPtr(h);
1342
+  unsigned i  = 0;
1343
+  for(; i<p->ssCnt; ++i)
1344
+  {
1345
+    cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i);
1346
+    if( cmRtNetIsValid(p->ssArray[i].netH))
1347
+      cmRtNetReportSyncEnable(p->ssArray[i].netH,enableFl);
1348
+  }
1349
+  return rc;
1350
+}
1351
+
1338 1352
 cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp )
1339 1353
 {
1340 1354
   cmRtRC_t rc = kOkRtRC;

+ 1
- 0
cmRtSys.h 파일 보기

@@ -327,6 +327,7 @@ extern "C" {
327 327
   bool     cmRtSysNetIsInitialized( cmRtSysH_t h );
328 328
   cmRtRC_t cmRtSysNetDoSync( cmRtSysH_t h );
329 329
   cmRtRC_t cmRtSysNetReport( cmRtSysH_t h );
330
+  cmRtRC_t cmRtSysNetReportSyncEnable( cmRtSysH_t h, bool enableFl );
330 331
   cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp );
331 332
 
332 333
 

Loading…
취소
저장