Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: fll mbed-rtos mbed
Diff: fll.h
- Revision:
- 34:422d4d6ae5ea
- Parent:
- 33:cc84b10e6c67
- Child:
- 35:4ba2f4fd7015
diff -r cc84b10e6c67 -r 422d4d6ae5ea fll.h
--- a/fll.h Tue Feb 17 03:22:36 2015 +0000
+++ b/fll.h Tue Feb 17 06:28:32 2015 +0000
@@ -47,10 +47,15 @@
Producer* source;
rtos::Mail<button_t, MAIL_BOX_SIZE>* mail_box;
Mutex* mutex;
+ button_t temporary[MAIL_BOX_SIZE];
+ int temporary_size;
+ bool paused;
public:
Sink(Producer* src, rtos::Mail<button_t, MAIL_BOX_SIZE>* box, Mutex* mut);
void run();
- void reset(); // reset source
+ void resume();
+ void pause();
+ void restart(); // reset source
void reset(Producer* src); // reset with new source
};
@@ -63,8 +68,8 @@
void run();
private:
Producer *producer;
- DigitalOut **pin;
- int **off;
+ DigitalOut* pin[BUTTON_NUM];
+ int off[BUTTON_NUM];
};
// Output reads the next button from mail box and press the button
