Ignore:
Timestamp:
Oct 23, 2016, 8:29:46 PM (8 years ago)
Author:
ertl-honda
Message:

マクロ名を更新.
実行モデルを変更.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/examples/Profiling/r2ca_app.cpp

    r255 r260  
    1 #include "rca.h"
     1#include "r2ca.h"
    22
     3void task1_setup();
    34
    45void setup(){
     
    89void loop(){
    910    Serial.print("idle     : ");
    10     Serial.println(rca_idle_result);
     11    Serial.println(r2ca_idle_result);
    1112    Serial.print("isr       : ");
    12     Serial.println(rca_isr_result);
     13    Serial.println(r2ca_isr_result);
    1314    Serial.print("dispatch  : ");
    14     Serial.println(rca_dispatch_result);       
     15    Serial.println(r2ca_dispatch_result);       
    1516    delay(1000);
     17
     18    task1_setup();
    1619}
    17 
    18 #if 0
    19 void task1_setup(){
    20 }
    21 
    22 void task1_loop(){   
    23     delay(10);
    24 }
    25 #endif
    2620
    2721#define PSERIAL SerialUSB
     
    5246#define TIMEOUT_MS  3000
    5347
    54 void task1_loop()
     48void loop1()
    5549{
    5650    if(!processing_connected){
     
    6761    uint16_t dispatch_cnt;
    6862
    69     load = 100 - map(rca_idle_result, 0, IDLE_TASK_IDLE_LOOP_10MS/10, 0, 100);
    70     isr_cnt = (rca_isr_result > 0xffff)? 0xffff : rca_isr_result;
    71     dispatch_cnt = (rca_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;
    7266   
    7367    if (PSERIAL.available()){
Note: See TracChangeset for help on using the changeset viewer.