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.
telemetry-master/server-cpp/telemetry-mbed.h
- Committer:
- cheryl_he
- Date:
- 2015-03-19
- Revision:
- 0:9541d7e0c80d
File content as of revision 0:9541d7e0c80d:
// Make this less hacky and detect properly #ifdef __ARMCC_VERSION #include "telemetry.h" #include "mbed.h" #include "MODSERIAL.h" namespace telemetry { class MbedHal : public HalInterface { public: MbedHal(MODSERIAL& serial) : serial(serial) { timer.start(); } virtual void transmit_byte(uint8_t data); virtual size_t rx_available(); virtual uint8_t receive_byte(); virtual void do_error(const char* message); virtual uint32_t get_time_ms(); protected: MODSERIAL& serial; Timer timer; }; } #endif // ifdef MBED