Changeset 260 for rtos_arduino/trunk/examples/NCESIoT_RTOS/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/NCESIoT_RTOS/r2ca_app.cpp
r259 r260 1 #include "r ca.h"1 #include "r2ca.h" 2 2 3 3 //#define USE_INTERRUPT … … 10 10 #define LED_PIN 4 11 11 12 extern void task1_setup(); 13 extern void task2_setup(); 14 extern void task3_setup(); 15 12 16 void setup() 13 17 { 14 18 Serial.begin(115200); 15 19 pinMode(LED_PIN, OUTPUT); 20 21 task1_setup(); 22 task2_setup(); 23 task3_setup(); 16 24 } 17 25 … … 40 48 } 41 49 42 void task1_loop()50 void loop1() 43 51 { 44 52 int lux; … … 62 70 void onTouch(void) { 63 71 Serial.print("hoge"); 64 iwup_tsk(R CA_TASK1);72 iwup_tsk(R2CA_TASK1); 65 73 } 66 74 #endif /* USE_INTERRUPT */ … … 74 82 } 75 83 76 void task2_loop()84 void loop2() 77 85 { 78 86 #ifdef USE_INTERRUPT … … 110 118 int count = 0; 111 119 112 void task3_loop()120 void loop3() 113 121 { 114 122 for (byte i=0; i<NUM_LEDS; i++)
Note:
See TracChangeset
for help on using the changeset viewer.