smoothie port to mbed online compiler (smoothieware.org)

Dependencies:   mbed

For documentation, license, ..., please check http://smoothieware.org/

This version has been tested with a 3 axis machine

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?

UserRevisionLine numberNew contents of line
scachat 0:31e91bb0ef3c 1 #ifndef PAUSEBUTTON_H
scachat 0:31e91bb0ef3c 2 #define PAUSEBUTTON_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 #include "libs/Pin.h"
scachat 0:31e91bb0ef3c 8
scachat 0:31e91bb0ef3c 9 #define pause_button_pin_checksum 32709
scachat 0:31e91bb0ef3c 10 #define pause_led_pin_checksum 48477
scachat 0:31e91bb0ef3c 11
scachat 0:31e91bb0ef3c 12 class PauseButton : public Module {
scachat 0:31e91bb0ef3c 13 public:
scachat 0:31e91bb0ef3c 14 PauseButton();
scachat 0:31e91bb0ef3c 15
scachat 0:31e91bb0ef3c 16 virtual void on_module_loaded();
scachat 0:31e91bb0ef3c 17 uint32_t button_tick(uint32_t dummy);
scachat 0:31e91bb0ef3c 18 virtual void on_play( void* argument );
scachat 0:31e91bb0ef3c 19 virtual void on_pause( void* argument );
scachat 0:31e91bb0ef3c 20
scachat 0:31e91bb0ef3c 21 Pin* button;
scachat 0:31e91bb0ef3c 22 Pin* led;
scachat 0:31e91bb0ef3c 23 bool button_state;
scachat 0:31e91bb0ef3c 24 bool play_state;
scachat 0:31e91bb0ef3c 25 };
scachat 0:31e91bb0ef3c 26
scachat 0:31e91bb0ef3c 27
scachat 0:31e91bb0ef3c 28
scachat 0:31e91bb0ef3c 29
scachat 0:31e91bb0ef3c 30
scachat 0:31e91bb0ef3c 31
scachat 0:31e91bb0ef3c 32
scachat 0:31e91bb0ef3c 33
scachat 0:31e91bb0ef3c 34
scachat 0:31e91bb0ef3c 35
scachat 0:31e91bb0ef3c 36
scachat 0:31e91bb0ef3c 37 #endif