Changeset 238
- Timestamp:
- May 10, 2016, 2:09:19 PM (7 years ago)
- Location:
- rtos_arduino/trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/lib/rca_lib.cpp
r220 r238 75 75 extern const DeviceVectors exception_table; 76 76 77 #ifdef RCA_RR_SC EDULE77 #ifdef RCA_RR_SCHEDULE 78 78 static uint32_t time_slice = 0; 79 #endif /* RCA_RR_SC EDULE */79 #endif /* RCA_RR_SCHEDULE */ 80 80 81 81 /* … … 85 85 rca_CycHandler(intptr_t exinf) 86 86 { 87 #ifdef RCA_RR_SC EDULE87 #ifdef RCA_RR_SCHEDULE 88 88 int i; 89 if (++time_slice == RCA_RR_SC EDULE_CYCLE) {89 if (++time_slice == RCA_RR_SCHEDULE_CYCLE) { 90 90 time_slice = 0; 91 91 for(i = 1; i < 16; i++){ 92 if (RCA_RR_SC EDULE & (i<< i)) {92 if (RCA_RR_SCHEDULE & (1 << i)) { 93 93 irot_rdq(i); 94 94 } 95 95 } 96 96 } 97 #endif /* RCA_RR_SC EDULE */97 #endif /* RCA_RR_SCHEDULE */ 98 98 #ifdef RCA_ENABLE_PROFILING 99 99 rca_di(); … … 260 260 void 261 261 yield(void){ 262 #ifdef RCA_RR_SC EDULE262 #ifdef RCA_RR_SCHEDULE 263 263 time_slice = 0; 264 #endif /* RCA_RR_SC EDULE */264 #endif /* RCA_RR_SCHEDULE */ 265 265 #ifdef RCA_ENABLE_PROFILING 266 266 rca_di(); -
rtos_arduino/trunk/lib/rca_lib.h
r196 r238 100 100 #endif /* RCA_TASK5_STACK_SIZE */ 101 101 102 103 /* 104 * Round Robin Scheduling cycle 105 */ 106 #ifndef RCA_RR_SCHEDULE_CYCLE 107 #define RCA_RR_SCHEDULE_CYCLE 1 108 #endif /* RCA_RR_SCHEDULE_CYCLE */ 109 102 110 #ifdef __cplusplus 103 111 extern "C" {
Note:
See TracChangeset
for help on using the changeset viewer.