Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Pauser.h Source File

Pauser.h

00001 #ifndef PAUSER_H
00002 #define PAUSER_H
00003 
00004 #include "libs/Kernel.h"
00005 #include "libs/nuts_bolts.h"
00006 #include "libs/utils.h"
00007 
00008 class Block;
00009 
00010 class Pauser : public Module {
00011     public:
00012         Pauser();
00013         void on_module_loaded();
00014         void on_block_begin(void*);
00015 
00016         void take();
00017         void release();
00018 
00019         bool paused();
00020 
00021         Block* paused_block;
00022         unsigned short counter;
00023 };
00024 
00025 #endif