Shohei Yasutake / Mbed 2 deprecated koibumi2000

Dependencies:   fll mbed-rtos mbed

Revision:
2:165723d41023
Parent:
1:1abcd83947bf
Child:
3:edbf31a8589f
diff -r 1abcd83947bf -r 165723d41023 fll.h
--- a/fll.h	Fri Feb 13 14:41:00 2015 +0000
+++ b/fll.h	Sat Feb 14 04:49:28 2015 +0000
@@ -22,7 +22,7 @@
 #define B_RIGHT 0x2000
 #define B_L1 0x4000
 
-#define QUEUE_SIZE 16
+#define MAIL_BOX_SIZE 16
 
 typedef uint16_t button;
 
@@ -53,10 +53,10 @@
 {
 private:
     Source* source;
-    rtos::Mail<button, QUEUE_SIZE>* queue;
-    Mutex* queueMutex; // Main Thread と同じ Mutex でなければいけない
+    rtos::Mail<button, MAIL_BOX_SIZE>* mail_box;
+    Mutex* mutex;
 public:
-    Sink(Source* src, rtos::Mail<button, QUEUE_SIZE>* q, Mutex* mut);
+    Sink(Source* src, rtos::Mail<button, MAIL_BOX_SIZE>* box, Mutex* mut);
     void run();
     void reset(Source* src);
 };
@@ -65,9 +65,9 @@
 class Output
 {
 private:
-    rtos::Mail<button, QUEUE_SIZE>* queue;
+    rtos::Mail<button, MAIL_BOX_SIZE>* mail_box;
 public:
-    Output(rtos::Mail<button, QUEUE_SIZE>* q);
+    Output(rtos::Mail<button, MAIL_BOX_SIZE>* box);
     void run();
 };