smoothie port to mbed online compiler (smoothieware.org)
For documentation, license, ..., please check http://smoothieware.org/
This version has been tested with a 3 axis machine
libs/Pauser.h@0:31e91bb0ef3c, 2012-07-31 (annotated)
- Committer:
- scachat
- Date:
- Tue Jul 31 21:11:18 2012 +0000
- Revision:
- 0:31e91bb0ef3c
smoothie port to mbed online compiler
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
scachat | 0:31e91bb0ef3c | 1 | #ifndef PAUSER_H |
scachat | 0:31e91bb0ef3c | 2 | #define PAUSER_H |
scachat | 0:31e91bb0ef3c | 3 | |
scachat | 0:31e91bb0ef3c | 4 | #include "libs/Kernel.h" |
scachat | 0:31e91bb0ef3c | 5 | #include "libs/nuts_bolts.h" |
scachat | 0:31e91bb0ef3c | 6 | #include "libs/utils.h" |
scachat | 0:31e91bb0ef3c | 7 | |
scachat | 0:31e91bb0ef3c | 8 | class Pauser : public Module { |
scachat | 0:31e91bb0ef3c | 9 | public: |
scachat | 0:31e91bb0ef3c | 10 | Pauser(); |
scachat | 0:31e91bb0ef3c | 11 | virtual void on_module_loaded(); |
scachat | 0:31e91bb0ef3c | 12 | void take(); |
scachat | 0:31e91bb0ef3c | 13 | void release(); |
scachat | 0:31e91bb0ef3c | 14 | |
scachat | 0:31e91bb0ef3c | 15 | unsigned short counter; |
scachat | 0:31e91bb0ef3c | 16 | }; |
scachat | 0:31e91bb0ef3c | 17 | |
scachat | 0:31e91bb0ef3c | 18 | #endif |