Changeset 260 for rtos_arduino/trunk/examples/Profiling/r2ca_app.cpp
- Timestamp:
- Oct 23, 2016, 8:29:46 PM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/examples/Profiling/r2ca_app.cpp
r255 r260 1 #include "r ca.h"1 #include "r2ca.h" 2 2 3 void task1_setup(); 3 4 4 5 void setup(){ … … 8 9 void loop(){ 9 10 Serial.print("idle : "); 10 Serial.println(r ca_idle_result);11 Serial.println(r2ca_idle_result); 11 12 Serial.print("isr : "); 12 Serial.println(r ca_isr_result);13 Serial.println(r2ca_isr_result); 13 14 Serial.print("dispatch : "); 14 Serial.println(r ca_dispatch_result);15 Serial.println(r2ca_dispatch_result); 15 16 delay(1000); 17 18 task1_setup(); 16 19 } 17 18 #if 019 void task1_setup(){20 }21 22 void task1_loop(){23 delay(10);24 }25 #endif26 20 27 21 #define PSERIAL SerialUSB … … 52 46 #define TIMEOUT_MS 3000 53 47 54 void task1_loop()48 void loop1() 55 49 { 56 50 if(!processing_connected){ … … 67 61 uint16_t dispatch_cnt; 68 62 69 load = 100 - map(r ca_idle_result, 0, IDLE_TASK_IDLE_LOOP_10MS/10, 0, 100);70 isr_cnt = (r ca_isr_result > 0xffff)? 0xffff : rca_isr_result;71 dispatch_cnt = (r ca_dispatch_result > 0xffff)? 0xffff : rca_dispatch_result;63 load = 100 - map(r2ca_idle_result, 0, IDLE_TASK_IDLE_LOOP_10MS/10, 0, 100); 64 isr_cnt = (r2ca_isr_result > 0xffff)? 0xffff : r2ca_isr_result; 65 dispatch_cnt = (r2ca_dispatch_result > 0xffff)? 0xffff : r2ca_dispatch_result; 72 66 73 67 if (PSERIAL.available()){
Note:
See TracChangeset
for help on using the changeset viewer.