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/NCESIoT_RTOS/r2ca_app.cpp

    r259 r260  
    1 #include "rca.h"
     1#include "r2ca.h"
    22
    33//#define USE_INTERRUPT
     
    1010#define LED_PIN  4
    1111
     12extern void task1_setup();
     13extern void task2_setup();
     14extern void task3_setup();
     15
    1216void setup()
    1317{
    1418    Serial.begin(115200);
    1519    pinMode(LED_PIN, OUTPUT);
     20
     21    task1_setup();
     22    task2_setup();
     23    task3_setup();
    1624}
    1725
     
    4048}
    4149 
    42 void task1_loop()
     50void loop1()
    4351{
    4452    int lux;
     
    6270void onTouch(void) {
    6371    Serial.print("hoge");
    64     iwup_tsk(RCA_TASK1);
     72    iwup_tsk(R2CA_TASK1);
    6573}
    6674#endif /* USE_INTERRUPT */
     
    7482}
    7583
    76 void task2_loop()
     84void loop2()
    7785{
    7886#ifdef USE_INTERRUPT   
     
    110118int count = 0;
    111119
    112 void task3_loop()
     120void loop3()
    113121{
    114122    for (byte i=0; i<NUM_LEDS; i++)
Note: See TracChangeset for help on using the changeset viewer.