Olivier Smeesters
/
DtmfKit
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: main.cpp
- Revision:
- 0:1324e7d9d471
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,28 @@ +#include "mbed_display_manager.hpp" +#include "mbed_keyboard_manager.hpp" +#include "mbed_dtmf_generator.hpp" +#include "system.hpp" +#include "system_states.hpp" +#include <iostream> + +int main() { + std::cout << "\r\n\nDTMF-Kit " __DATE__ " / " __TIME__ "\r" << std::endl; + + MbedDisplayManager display; + MbedKeyboardManager keyboard; + MbedDtmfGenerator dtmf; + + System system(&display, &keyboard, &dtmf); + InitState initState(&system); + EditState editState(&system); + CommandState commandState(&system); + SendingState sendingState(&system); + + keyboard.attach(&system); + + system.setState(System::Edit); + + while (true) { + wait(10); + } +}